Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
as-cle-bertย 
posted an update 2 days ago
Post
2093
I built an AI agent app in less than 8 hours๐Ÿคฏ
And, believe me, this is ๐—ป๐—ผ๐˜ clickbaitโŒ

GitHub ๐Ÿ‘‰ https://github.com/AstraBert/PapersChat
Demo ๐Ÿ‘‰ as-cle-bert/PapersChat

The app is called ๐๐š๐ฉ๐ž๐ซ๐ฌ๐‚๐ก๐š๐ญ, and it is aimed at ๐—บ๐—ฎ๐—ธ๐—ถ๐—ป๐—ด ๐—ฐ๐—ต๐—ฎ๐˜๐˜๐—ถ๐—ป๐—ด ๐˜„๐—ถ๐˜๐—ต ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐˜๐—ถ๐—ณ๐—ถ๐—ฐ ๐—ฝ๐—ฎ๐—ฝ๐—ฒ๐—ฟ๐˜€ ๐—ฒ๐—ฎ๐˜€๐—ถ๐—ฒ๐—ฟ.

๐‡๐ž๐ซ๐ž ๐ข๐ฌ ๐ฐ๐ก๐š๐ญ ๐ญ๐ก๐ž ๐š๐ฉ๐ฉ ๐๐จ๐ž๐ฌ:

๐Ÿ“„ Parses the papers that you upload thanks to LlamaIndex๐Ÿฆ™ (either with LlamaParse or with simpler, local methods)
๐Ÿ“„ Embeds documents both with a sparse and with a dense encoder to enable hybrid search
๐Ÿ“„ Uploads the embeddings to Qdrant
โš™๏ธ Activates an Agent based on mistralai/Mistral-Small-24B-Instruct-2501 that will reply to your prompt
๐Ÿง  Retrieves information relevant to your question from the documents
๐Ÿง  If no relevant information is found, it searches PubMed and arXiv databases
๐Ÿง  Returns a grounded answer to your prompt

๐‡๐จ๐ฐ ๐๐ข๐ ๐ˆ ๐ฆ๐š๐ง๐š๐ ๐ž ๐ญ๐จ ๐ฆ๐š๐ค๐ž ๐ญ๐ก๐ข๐ฌ ๐š๐ฉ๐ฉ๐ฅ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐ข๐ง ๐Ÿ– ๐ก๐จ๐ฎ๐ซ๐ฌ?

Three key points:

- LlamaIndex๐Ÿฆ™ provides countless integrations with LLM providers, text embedding models and vectorstore services, and takes care of the internal architecture of the Agent. You just plug it in, and it works!๐Ÿ”Œโšก
- Qdrant is a vector database service extremely easy to set up and use: you just need a one-line Docker command๐Ÿ˜‰
- Gradio makes frontend development painless and fast, while still providing modern and responsive interfaces๐Ÿ—๏ธ

And a bonus point:

- Deploying the demo app couldn't be easier if you use Gradio-based Hugging Face Spaces๐Ÿค—

So, no more excuses: build your own AI agent today and do it fast, (almost) for free and effortlessly๐Ÿš€

And if you need a starting point, the code for PapersChat is open and fully reproducible on GitHub ๐Ÿ‘‰ https://github.com/AstraBert/PapersChat