0

I have these lines of code to get an answer from OpenAi which gets data from a query and a document. However, when responding, it uses data from previous queries, which I don't want, since the response should only be based on the data from my current query. What do I have to change? Is it because of ChromaDb, do I need to delete entries there? index = VectorstoreIndexCreator().from_loaders([TextLoader(outputFile)]) response = index.query(query, llm=ChatOpenAI(model = "gpt-3.5-turbo"))

It should only use data from my current query and not from previous queries.

Lukas
  • 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 30 '23 at 05:23
  • You can try with Role, where you set context for not using previous query for current reponse or answer. – ZKS Aug 31 '23 at 14:59

0 Answers0