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:
Vasilije 2025-04-07 11:46:48 +02:00 committed by GitHub
parent e12242b9d0
commit cd0d321eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -57,7 +57,7 @@ async def specific_search(
SearchType.SUMMARIES: SummariesRetriever().get_completion, SearchType.SUMMARIES: SummariesRetriever().get_completion,
SearchType.INSIGHTS: InsightsRetriever().get_completion, SearchType.INSIGHTS: InsightsRetriever().get_completion,
SearchType.CHUNKS: ChunksRetriever().get_completion, SearchType.CHUNKS: ChunksRetriever().get_completion,
SearchType.COMPLETION: CompletionRetriever( SearchType.RAG_COMPLETION: CompletionRetriever(
system_prompt_path=system_prompt_path system_prompt_path=system_prompt_path
).get_completion, ).get_completion,
SearchType.GRAPH_COMPLETION: GraphCompletionRetriever( SearchType.GRAPH_COMPLETION: GraphCompletionRetriever(

View file

@ -5,7 +5,7 @@ class SearchType(Enum):
SUMMARIES = "SUMMARIES" SUMMARIES = "SUMMARIES"
INSIGHTS = "INSIGHTS" INSIGHTS = "INSIGHTS"
CHUNKS = "CHUNKS" CHUNKS = "CHUNKS"
COMPLETION = "COMPLETION" RAG_COMPLETION = "RAG_COMPLETION"
GRAPH_COMPLETION = "GRAPH_COMPLETION" GRAPH_COMPLETION = "GRAPH_COMPLETION"
GRAPH_SUMMARY_COMPLETION = "GRAPH_SUMMARY_COMPLETION" GRAPH_SUMMARY_COMPLETION = "GRAPH_SUMMARY_COMPLETION"
CODE = "CODE" CODE = "CODE"

View file

@ -77,7 +77,7 @@ async def main():
print(completion) print(completion)
# Completion query that uses document chunks to form context. # 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." assert len(completion) != 0, "Completion search didn't return any result."
print("Completion result is:") print("Completion result is:")
print(completion) print(completion)

View file

@ -160,7 +160,7 @@
"metadata": {}, "metadata": {},
"cell_type": "code", "cell_type": "code",
"source": [ "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", "\n",
"print(\"\\n\\nAnswer based on RAG:\\n\")\n", "print(\"\\n\\nAnswer based on RAG:\\n\")\n",
"for result in search_results:\n", "for result in search_results:\n",