peter! 🥷 Profile picture
May 25 11 tweets 3 min read Twitter logo Read on Twitter
Vector databases may be the next "big thing"

• Vector databases explained
• What is Unstructured data?
• When to use vector databases
• Embeddings.
• Use-cases

All you need to know in under 10 tweets.

Save This ↓ Image
Why do we even need a database?

→ We have data that we want to store.

Relational databases (like Postgres) or No-SQL databases (AWS DynamoDB) can store structured data but there is one inherent problem.

→ Unstructured data is hard to store in relational databases. Image
What is Unstructured data?

→ Things like: Images, Audio, Documents, PDFs etc.

Image you want to find what's the best book recommendation if I you "Catcher in the Rye." This is impossible with a relational database.

→ This is where embeddings & vector databases come in. Image
Here's a Caveman explanation:

→ Vector databases allow us to use to search across unstructured data (images, video, audio) by their content
What are some use-cases for having a vector database?

• Recommendation ( Netflix movie recommendation)
• Find similar images ("Find similar images with dogs in it")
• Find related documents ("Find other documents that talk about love")
P.S - ✨ I'm dropping a FREE step-by-step mini-course guide to start coding with A.I

(Free for now, but not free forever)

Check it out: StartCodingWithAI.com Image
Let's go over what an embedding is.

→ We are generating the numerical representation of a piece of unstructured data. Image
Take a look at the graphic.

→ We generated the vector embedding from raw data.
→ We use the vector-database to help us find the data that are similar or related. Image
Imagine you have a billion records in the database. It will take a while to find & return the most relevant result.

This is where Index comes in.

→ Index is a data structure that speeds up the search process & allows for similarity search (Think of it as an appendix in a book)
Wrapping it all up: 🔥

1) Generate embeddings with a ML model (like OpenAI embeddings)

2) Pass embeddings into a Vector database

3) Vector database stores, indexes and allows you to search for similar/relevant data.
That's a wrap. 🌯

Lmk what's the biggest problem you guys are having and I'll cover it.

P.S: This langchain series is coming to an end, gonna do LLM deep-dive Series starting next week.

• • •

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

Keep Current with peter! 🥷

peter! 🥷 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 @pwang_szn

May 22
✨ Here's all you need to know about Chains in @LangChainAI

(In less than 3 minutes of reading..)

• Basic Information about Chains
• LLM Chain Explained
• Sequential Chain
• Four types of Chains

Save This ↓ Image
Basic Information about Chains: Image
LLM Chain Explained: Image
Read 16 tweets
May 19
"How to Create Your Own Personal Chatbot (without ripping your hair out)"

I've broken it down into bite-size chunks.

Save this ↓ Image
Here's a high level of what we're doing: Image
There are two main steps:

1) Data ingestion (taking in the data & processing it)
2) Calling LLM with the ingested data.

We'll go over both parts, let's start with Data ingestion first.
Read 14 tweets
May 17
Everything you need to know about Prompts in @LangChainAI :

• Basic Information
• Example Prompts
• Output Parser

Save This ↓ Image
Basic Information Image
Example of a prompt template:

1) We set 'product' as the input_variable
2) We input 'colorful sock' for the 'product' parameter. Image
Read 8 tweets
May 15
All you need to know about LLMs:

• Overview
• Using LLMs in @LangChainAI
• Using open-sourced LLMs
• Chat Model
• How do we embed text?

Save this ↓ Image
LLMs explained: Image
A lot of people ask if it's possible to other LLMs with Langchain.

Yes it is.

Here we're using @huggingface's open-sourced LLM. Image
Read 10 tweets
May 13
Everyone's been asking for it.

Here it is. I've broken it down @LangChainAI Agents into bite-size chunks.

• Agents Basics
• Tools
• Agent Executor
• AutoGPT
• BabyAGI

Save this ↓ Image
Agents explained: Image
Let's define what is an agent: Image
Read 11 tweets
May 11
Memory in @LangChainAI is a big deal.

It was a lot to go through, but I broke it into bite-size chunks.

• 4 Memory Types Explained
• How to use Memory in a Chain
• How to add Memory to an Agent

Save this ↓ Image
ConversationBufferMemory:

• Memory allows for storing of messages
• Extracts the messages in a variable.

Pro: Basic to understand/pickup Image
ConversationBufferWindowMemory:

• Only uses the last K messages.

Pro: Useful to keep the memory history small Image
Read 10 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!

:(