whiletrue-industries / odds

ckangpt
MIT License
1 stars 0 forks source link

create separate frontend commands to test the different parts of the pipeline #11

Closed OriHoch closed 1 year ago

OriHoch commented 1 year ago
  1. get_vector_db_query(user_prompt) - convert the user prompt to a relevant query for the vector DB (possibly using GPT)
  2. get_documents_from_vector_db(query) - query the vector DB and get back document objects, listing them in a user friendly way
  3. get_context_from_documents(user_prompt, documents) - combine the user prompt and the document objects into a context text
  4. get_prompt_with_context(user_prompt, context) - combine the user prompt and the context text into a GPT prompt
  5. get_answer_from_prompt(prompt, documents) - get the final answer from the GPT prompt (possibly including more details from the document objects)