chore: minor improvements
This commit is contained in:
parent
aba5f9ba55
commit
2d6188523a
2 changed files with 2 additions and 4 deletions
|
|
@ -177,9 +177,7 @@ async def _build_feedback_interaction_records(
|
|||
return feedback_interaction_records
|
||||
|
||||
|
||||
async def extract_feedback_interactions(
|
||||
subgraphs: List, last_n: Optional[int] = None
|
||||
) -> List[FeedbackEnrichment]:
|
||||
async def extract_feedback_interactions(last_n: Optional[int] = None) -> List[FeedbackEnrichment]:
|
||||
"""Extract negative feedback-interaction pairs and create FeedbackEnrichment DataPoints."""
|
||||
graph_nodes, graph_edges = await _fetch_feedback_and_interaction_graph_data()
|
||||
if not graph_nodes:
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ async def run_question_and_submit_feedback(question_text: str) -> bool:
|
|||
await cognee.search(
|
||||
query_type=SearchType.FEEDBACK,
|
||||
query_text=feedback_text,
|
||||
last_k=2,
|
||||
last_k=1,
|
||||
)
|
||||
return mentions_mallory
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue