Misbah Syed Profile picture
May 8 5 tweets 3 min read Twitter logo Read on Twitter
Let's build a @LangChainAI agent in under 30 minutes that can access the internet, chat with a PDF, and help us understand code. All without a single line of code using @FlowiseAI and @bubble.

This agent will have access to 3 tools and a memory as shown. Tools explained in 🧵👇 Image
We start with a conversational agent and connect it to the serpAPI tool available in LangChain to perform a Google search. This returns a list of search results, that is then passed to the LLM to generate an answer based on the results and the user query. Image
Second tool used is the retrieval QA chain. We first embed a pdf using a PDFloader and save it in @pinecone. Our tool then finds the most relevant answer using the OP stack (@OpenAI x @pinecone ) Image
Third tool used is the again the retrieval QA chain but using the GitHub loader for embedding a GitHub repo and then querying it using the OP stack. Image
Detailed walkthrough with step-by-step instructions at

DM for any questions. RT if you like the work. 😉

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Misbah Syed

Misbah Syed Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @MisbahSy

Apr 27
With these few lines of code, you can deploy a backend for multilingual semantic search over a PDF using @CohereAI and @qdrant_engine, with the ability to embed and perform a search in 100+ languages. Certainly, you can see the power of @LangChainAI here. Image
It basically divides a document retrieval system into two API functions corresponding to document ingestion and retrieval/search query. Image
Document Ingestion takes the document, extracts text, chunks it, generates embeddings using @CohereAI multilingual embedding model, and saves it to a @qdrant_engine database. Image
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(