feat: ✨ Embedding working again, have next steps
This commit is contained in:
@@ -54,8 +54,11 @@ class DnDRAG(dspy.Module):
|
||||
self.generate_answer = dspy.ReAct(signature=DnDContextQA,tools=self.tools)
|
||||
|
||||
def forward(self, question):
|
||||
# Use Turso to retrieve relevant notes
|
||||
# TODO: Add step here to LLM Expand
|
||||
# given the current question, generate 3-5 distinct search queries.
|
||||
# embed all the questions
|
||||
embedded_question = self.embeddings_model._post_request(question)
|
||||
# store the 5 from all 3-5 questions (15 - 25 results)
|
||||
results = retrieve_from_turso(embedded_question, k=5) # k is limit to return
|
||||
|
||||
# Format context as before
|
||||
|
||||
Reference in New Issue
Block a user