Langchain TextLoader, TextSplitter, Embeddings, and PGVector

  Рет қаралды 3,602

Derek Arends

Derek Arends

Күн бұрын

Пікірлер: 22
@RealEstate3D
@RealEstate3D Жыл бұрын
I appreciate your work. Surprised to have found your channel so “late”. From my POV your channel is underrated.
@DerekArends
@DerekArends Жыл бұрын
I appreciate that!
@patruff
@patruff Жыл бұрын
OMG I was looking for this exact thing and you did it, thanks friend
@DerekArends
@DerekArends Жыл бұрын
No problem 😊
@emailthistorob
@emailthistorob 7 ай бұрын
Thanks for a great video. I'm struglling to get the metadata filters (e.g. $eq, $in) to work. Could you do a video on that?
@DerekArends
@DerekArends 7 ай бұрын
Hey hey! Let me take a look at that and see if that is something I can create a quick demo on.
@CristianMolina
@CristianMolina 9 ай бұрын
Nice video. I liked that you just limited the do one thing and not a complete RAG chat. I'm a bit overwhelmed with so many parameters and diff. classes to do something, for instance, there is RecursiveCharacterTextSplitter. How it differs?
@LearningWorldChatGPT
@LearningWorldChatGPT Жыл бұрын
Thank you very much, Derek! Excellent tutorial ! Using PGEmbedding would be very similar to PGVector, right ? ... and from what I've read, PGEmbedding has a better performance, right?
@DerekArends
@DerekArends Жыл бұрын
Yeah, I believe it would be very similar. From a code perspective Langchain would need to have a tool for it but otherwise the concept is the same. I haven't tried it out but it does say it is more performant than PGVector. I may have to try it out and create a video on it. Thank you for pointing this project out!
@shah_mori
@shah_mori Жыл бұрын
This was very easy to understand, I love it! I have a question tho, is it possible to update the postgresql vector database based on a collection name?
@DerekArends
@DerekArends Жыл бұрын
If you want to update the database collection when loading the documents you can set the parameter "pre_delete_collection" to true and it will delete that collection and insert a new one db = PGVector.from_documents( documents=data, embedding=embeddings, collection_name=collection_name, connection_string=connection_string, distance_strategy=DistanceStrategy.COSINE, openai_api_key=api_key, pre_delete_collection=True )
@domyu6418
@domyu6418 Жыл бұрын
Hi Derek, quick question. When I try to install the "vector" extension in VS Code, it tells me that "extension 'vector' is not available. Even when I manually search for it, I cannot seem to find it. Do you have any insight here? Thank you and great video!
@DerekArends
@DerekArends Жыл бұрын
Hey! Are you running "ankane/pgvector" as the docker image? If not, try that or github.com/pgvector/pgvector as steps for how to install it in other situations.
@arpitapramanik4679
@arpitapramanik4679 Жыл бұрын
How to access a user defined table where i have stored vector of text.with vector type as a column.
@DerekArends
@DerekArends Жыл бұрын
So sorry for delay in reply. The easiest way I have found to do it is use the VS Code extension called SQL Tools, install the Postgres Connector, and connect to the database that way. This will give you the ability to see database schema.
@ernie_hudds
@ernie_hudds Жыл бұрын
So just to be clear - its not really using AI fanciness its just finding a close match from documents based on a query, right?
@DerekArends
@DerekArends Жыл бұрын
Correct, nothing too fancy here. It is just using vector embeddings and doing a similarity match. Next steps would be to take those matches and send it to AI to do summary/answer questions. I will get a video out about why you may want to do this and how to do it.
@ernie_hudds
@ernie_hudds Жыл бұрын
@@DerekArends I think that would be a superb and helpful video.
@SMCGPRA
@SMCGPRA Жыл бұрын
fed up of seeing openai why can't use open-source LLMs
@DerekArends
@DerekArends Жыл бұрын
I will try to make a few with other LLM and see what magic happens!
@CristianMolina
@CristianMolina 9 ай бұрын
at least he used an OSS vector DB ;)
Langchain's Prompt Templates and Sequential Chains
17:35
Derek Arends
Рет қаралды 5 М.
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 36 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 4,9 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 71 МЛН
[QA] Can Transformers Smell Like Humans?
7:49
Arxiv Papers
Рет қаралды 4
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 287 М.
Local GraphRAG with LLaMa 3.1 - LangChain, Ollama & Neo4j
15:01
Coding Crash Courses
Рет қаралды 27 М.
LangServe Chat Playground Launch
15:58
LangChain
Рет қаралды 11 М.
AI Model Context Decoded
8:21
Matt Williams
Рет қаралды 7 М.
Langchain and Pinecone with Node.js: A Quick Start Tutorial
21:50
Developers Digest
Рет қаралды 16 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 492 М.