Anurag commited on
Commit
ecaf3da
·
1 Parent(s): 9744553

update readme

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. qdrent.py +3 -0
README.md CHANGED
@@ -187,6 +187,8 @@ Clone [e5-base-v2](https://huggingface.co/intfloat/e5-base-v2) to `models/e5-bas
187
 
188
  Choose your preferred Whisper model size:
189
 
 
 
190
  - **tiny**: Fastest, lower accuracy
191
  - **base**: Balanced performance
192
  - **small**: Better accuracy
 
187
 
188
  Choose your preferred Whisper model size:
189
 
190
+ **✅ Just specify the model name(`app.py`) — it will be automatically downloaded and loaded.**
191
+
192
  - **tiny**: Fastest, lower accuracy
193
  - **base**: Balanced performance
194
  - **small**: Better accuracy
qdrent.py CHANGED
@@ -2,6 +2,7 @@ from qdrant_client import QdrantClient
2
  from qdrant_client.http import models as rest
3
  import numpy as np
4
  import uuid
 
5
 
6
  # Initialize Qdrant client and collection
7
  client = QdrantClient(host='localhost', port=6333)
@@ -29,6 +30,8 @@ async def initialize_collection():
29
  print(f"Collection '{collection_name}' already exists.")
30
 
31
 
 
 
32
  async def store_embeddings(session_id, embeddings, texts=None, name="", title="", summary="", categories=""):
33
  """
34
  Store embeddings for a specific session_id.
 
2
  from qdrant_client.http import models as rest
3
  import numpy as np
4
  import uuid
5
+ import asyncio
6
 
7
  # Initialize Qdrant client and collection
8
  client = QdrantClient(host='localhost', port=6333)
 
30
  print(f"Collection '{collection_name}' already exists.")
31
 
32
 
33
+ asyncio.run(initialize_collection())
34
+
35
  async def store_embeddings(session_id, embeddings, texts=None, name="", title="", summary="", categories=""):
36
  """
37
  Store embeddings for a specific session_id.