Skip to content

Commit

Permalink
Fix backend init error by checking the github collection exists
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Feb 7, 2025
1 parent 41ff7d2 commit 89e1724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gurubase-backend/backend/core/milvus_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def create_context_collection(collection_name):
print(f'Created collection {collection_name}')

def create_code_context_collection(collection_name):

if client.has_collection(collection_name):
return
# 1. Create schema
schema = MilvusClient.create_schema(
auto_id=True,
Expand Down

0 comments on commit 89e1724

Please sign in to comment.