News for hackers. Stuff that matters.
Re:Prompt-driven vector search with LLMs by txtai on Friday February 03, 2023 @12:36PM (#34644660)
The goal of this approach is to answer questions with a datasource. The referenced example runs a vector database query to build the context and then runs a prompt to ask the question.

Answer the following question using only the context below. Say 'no answer' when the question can't be answered. Question: {question} Context: {context}

Not sure this prompt works for all scenarios and models. But it can easily be changed and is a starting point.

There are no comments on this comment yet.