Open ShaneStallman opened 1 month ago
Researched some about how to integrate langchain with postgres and looked up tutorials and guides.
I found 2 good videos on how to integrate pgvector with langchain.
https://www.youtube.com/watch?v=FDBnyJu_Ndg
This video goes over the process of going through a document, chunking it into segments, and embeds them and store them inside a vector database in postgres. Also goes through how to set up a vector database in postgres in a docker container and how to use langchain to connect to the database and finding similarities with in the database.
https://www.youtube.com/watch?v=GYwhDkwCdt8
This video goes through the process of how to use langchain in a RAG model and it uses retrieval objects to get necessary documents for a user's query and feeds it into the LLM to get the answer.
This week I did some testing and I am continue going to use multiple pdf's to get an overall accuracy.
Using Ollama code to add another alternate code piece. Trying to figure out how to raise accuracy