itsKia2 / NavAI

0 stars 0 forks source link

Langchain and Postgres Integration #5

Open ShaneStallman opened 1 month ago

AryanJoshi-03 commented 1 month ago

Using Ollama code to add another alternate code piece. Trying to figure out how to raise accuracy

vincentchang102 commented 1 month ago

Researched some about how to integrate langchain with postgres and looked up tutorials and guides.

vincentchang102 commented 1 month ago

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.

AryanJoshi-03 commented 1 month ago

This week I did some testing and I am continue going to use multiple pdf's to get an overall accuracy.