Skip to content

Do a QA session with the docs provided as an input. Use langchain and OpenAI gpt-3.5 model as backend

License

Notifications You must be signed in to change notification settings

ambujpawar/qa_with_docs

Repository files navigation

qa_with_docs

Do a QA session with the docs provided as an input. Use langchain and OpenAI gpt-3.5 model as backend

The data that we want to query is present in the data folder. The data has been processed and stored in as an index file and the pickle file. After the user inputs the query, the similar sentences are searched in the database using FAISS algorithm. The query and the similar sentences are then sent to the GPT-3.5 in the form of:

"Hey Assistant, I have this query {query}. Find me the answer given the context {similar sentences}"

GPT-3.5 constructs sentences based on this and gives us answer in the Natural Language.

qa_with_docs.mov

Using Gradio frontend

qa_480p.mov

About

Do a QA session with the docs provided as an input. Use langchain and OpenAI gpt-3.5 model as backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages