Skip to content

ChatGPT Summary with Elasticsearch as a Private Datastore

Notifications You must be signed in to change notification settings

Gunnerva/elastic_chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

elastic_chatgpt

ChatGPT Summary with Elasticsearch as a Private Datastore

Combining the search power of Elasticsearch with the Question Answering power of GPT

  1. Python interface accepts user questions
  • Generate a hybrid search request for Elasticsearch
  • BM25 match on the title field
  • kNN search on the title-vector field
  • Boost kNN search results to align scores
  • Set size=1 to return only the top scored document
  • optinally search Bing if your private dataset does not have the answer
  1. Search request is sent to Elasticsearch
  2. Documentation body and original url are returned to python
  3. API call is made to OpenAI ChatCompletion
  • Prompt: "answer this question using only this document <body_content from top search result>"
  1. Generated response is returned to python
  2. Python adds on original documentation source url to generated response and prints it to the screen for the user

About

ChatGPT Summary with Elasticsearch as a Private Datastore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages