Community Session IndexingChaining
Community Session IndexingChaining
Community Session
Outline
Introductory Talk - Thinking about LLMs as Builders
● Chaining
● Indexing
● LLMs, Vector DBs, and LLM Ops
© 2023 FourthBrain
How most people use LLMs
© 2023 FourthBrain
What most people ask about LLMs
© 2023 FourthBrain
Thinking about LLMs as Builders
● Primary Chains
○ Prompt Chain
○ Tools Chain
○ Data Indexing Chain
© 2023 FourthBrain
“LangChain provides a generic interface for
interacting with LLMs”
© 2023 FourthBrain
A Simplified LangChain Application
Same chains…
● Prompt Chain
● Tools Chain
● Data Indexing Chain
© 2023 FourthBrain
Def: Vector Store (a.k.a. Vector Database)
● optimized for storing documents and
their embeddings
© 2023 FourthBrain
LLMs, Chaining, Data Indexing, Vector DBs, Documents…
https://every.to/chain-of-thought/a-few-things-i-believe-about-ai
© 2023 FourthBrain
Players to Watch (Chaining)
● LangChain ~ $10M seed funding
© 2023 FourthBrain
The more mature infrastructure layer is…
Vector Store DB Companies (LangChain Support)
● Chroma ~ $18M seed round
● FAISS (Facebook)
● Elastic Search (est. company)
● Milvus $60M Series B (ext), $43M in ‘21
● Pinecone ~ $100M Series B
● Qdrant ~ $7.5M seed round
● Weaviate ~$50M Series B
© 2023 FourthBrain
Ex Project Ideas from “Building with LLMs” Course
Simple (1-step)
● Natural Language Website Search: Scrape all text from {hotel}.com webpages
and index it in a vector store so that any information can be searched with an
LLM
Mild (2-step)
● Technical Q&A (“AI Tech Support”): Create a fine-tuned LLM to answer FAQs
about technical documentation, and then if there is no answer use a non-fine-
tuned LLM to search all relevant documentation to find answer.
© 2023 FourthBrain
Ex Project Ideas from “Building with LLMs” Course
Medium (2+step)
● Qualitative + Quantitative Q&A (“The AI VP”): Create a fine-tuned LLM to
generate SQL queries for your database structure using common queries useful to
your product/sales/etc. team, then perform the SQL query and return the
quantitative result. Compare the result against the question asked, and combine
into a holistic response.
© 2023 FourthBrain
What useful LLM tasks (projects)
© 2023 FourthBrain
This week’s build - Questioning Your Document
● Model: OpenAI’s gpt-3.5-turbo
© 2023 FourthBrain
Let’s Check it Out!