feat: Rename COMPLETION to RAG_COMPLETION (#701)
<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
parent
e12242b9d0
commit
cd0d321eda
4 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ async def specific_search(
|
|||
SearchType.SUMMARIES: SummariesRetriever().get_completion,
|
||||
SearchType.INSIGHTS: InsightsRetriever().get_completion,
|
||||
SearchType.CHUNKS: ChunksRetriever().get_completion,
|
||||
SearchType.COMPLETION: CompletionRetriever(
|
||||
SearchType.RAG_COMPLETION: CompletionRetriever(
|
||||
system_prompt_path=system_prompt_path
|
||||
).get_completion,
|
||||
SearchType.GRAPH_COMPLETION: GraphCompletionRetriever(
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class SearchType(Enum):
|
|||
SUMMARIES = "SUMMARIES"
|
||||
INSIGHTS = "INSIGHTS"
|
||||
CHUNKS = "CHUNKS"
|
||||
COMPLETION = "COMPLETION"
|
||||
RAG_COMPLETION = "RAG_COMPLETION"
|
||||
GRAPH_COMPLETION = "GRAPH_COMPLETION"
|
||||
GRAPH_SUMMARY_COMPLETION = "GRAPH_SUMMARY_COMPLETION"
|
||||
CODE = "CODE"
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ async def main():
|
|||
print(completion)
|
||||
|
||||
# Completion query that uses document chunks to form context.
|
||||
completion = await cognee.search(SearchType.COMPLETION, "What is Python?")
|
||||
completion = await cognee.search(SearchType.RAG_COMPLETION, "What is Python?")
|
||||
assert len(completion) != 0, "Completion search didn't return any result."
|
||||
print("Completion result is:")
|
||||
print(completion)
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@
|
|||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"search_results = await cognee.search(SearchType.COMPLETION, \"Tell me who are the people mentioned?\")\n",
|
||||
"search_results = await cognee.search(SearchType.RAG_COMPLETION, \"Tell me who are the people mentioned?\")\n",
|
||||
"\n",
|
||||
"print(\"\\n\\nAnswer based on RAG:\\n\")\n",
|
||||
"for result in search_results:\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue