feat: Embedding working again, have next steps

This commit is contained in:
2026-03-05 17:30:02 +00:00
parent 448024dca3
commit d162aa59dc
3 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -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