twilio-labs / call-gpt

Generative AI phone call toolkit using Twilio Media Streams.
MIT License
273 stars 114 forks source link

Giving a Knowledge Base for the Bot #22

Open ChamathRosh opened 6 months ago

ChamathRosh commented 6 months ago

Is there any way that we can give a knowledgebase from pdf or any other format

cweems commented 6 months ago

@ChamathRosh not as of yet, I believe we would need to integrate with the OpenAI assistants API to support this functionality. I am looking into it now.

SDCalvo commented 6 months ago

You could also use a vector DB like pinecone for this, build a retriever and make a function that takes the retrieval from the DB and turns is into a string as Context: ${contextGottenFromPinecone} and you can append that context to the LLM prompt whenever queriyng for the next interaction