fix: Use multi-user mode search
This commit is contained in:
parent
3c09433ade
commit
00a1fe71d7
2 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ async def run_procurement_example():
|
||||||
for q in questions:
|
for q in questions:
|
||||||
print(f"Question: \n{q}")
|
print(f"Question: \n{q}")
|
||||||
results = await procurement_system.search_memory(q, search_categories=[category])
|
results = await procurement_system.search_memory(q, search_categories=[category])
|
||||||
top_answer = results[category][0]
|
top_answer = results[category][0]["search_result"][0]
|
||||||
print(f"Answer: \n{top_answer.strip()}\n")
|
print(f"Answer: \n{top_answer.strip()}\n")
|
||||||
research_notes[category].append({"question": q, "answer": top_answer})
|
research_notes[category].append({"question": q, "answer": top_answer})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ async def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
print("Coding rules created by memify:")
|
print("Coding rules created by memify:")
|
||||||
for coding_rule in coding_rules:
|
for coding_rule in coding_rules[0]["search_result"][0]:
|
||||||
print("- " + coding_rule)
|
print("- " + coding_rule)
|
||||||
|
|
||||||
# Visualize new graph with added memify context
|
# Visualize new graph with added memify context
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue