nadaaaita commited on
Commit
a0d6c77
Β·
1 Parent(s): bc652b7

changed qdrant collection to 1000char

Browse files
app_chatbot.py β†’ _archive/app_chatbot.py RENAMED
File without changes
app_generic.py β†’ _archive/app_generic.py RENAMED
File without changes
app_old.py β†’ _archive/app_old.py RENAMED
File without changes
app_passagefinder.py β†’ _archive/app_passagefinder.py RENAMED
File without changes
streamlit_app.py β†’ _archive/streamlit_app.py RENAMED
File without changes
src/generic_bot.py CHANGED
@@ -26,7 +26,7 @@ load_dotenv('/Users/nadaa/Documents/code/py_innovations/srf_chatbot_v2/.env')
26
 
27
 
28
  class ToolManager:
29
- def __init__(self, collection_name="openai_large_chunks_1500char"):
30
  self.tools = []
31
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
32
  self.vectorstore = self.qdrant.get_vectorstore()
 
26
 
27
 
28
  class ToolManager:
29
+ def __init__(self, collection_name="openai_large_chunks_1000char"):
30
  self.tools = []
31
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
32
  self.vectorstore = self.qdrant.get_vectorstore()
src/passage_finder.py CHANGED
@@ -40,7 +40,7 @@ class AgentState(TypedDict):
40
 
41
 
42
  class ToolManager:
43
- def __init__(self, collection_name="openai_large_chunks_1500char"):
44
  self.tools = []
45
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
46
  self.vectorstore = self.qdrant.get_vectorstore()
 
40
 
41
 
42
  class ToolManager:
43
+ def __init__(self, collection_name="openai_large_chunks_1000char"):
44
  self.tools = []
45
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
46
  self.vectorstore = self.qdrant.get_vectorstore()
src/srf_bot.py CHANGED
@@ -26,7 +26,7 @@ load_dotenv('/Users/nadaa/Documents/code/py_innovations/srf_chatbot_v2/.env')
26
 
27
 
28
  class ToolManager:
29
- def __init__(self, collection_name="openai_large_chunks_1500char"):
30
  self.tools = []
31
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
32
  self.vectorstore = self.qdrant.get_vectorstore()
 
26
 
27
 
28
  class ToolManager:
29
+ def __init__(self, collection_name="openai_large_chunks_1000char"):
30
  self.tools = []
31
  self.qdrant = qm.QdrantManager(collection_name=collection_name)
32
  self.vectorstore = self.qdrant.get_vectorstore()
src/utils/qdrant_manager.py CHANGED
@@ -14,7 +14,7 @@ load_dotenv()
14
  # Qdrant Collections Params
15
 
16
  openai_embeddings = OpenAIEmbeddings(model=settings.EMBEDDINGS_MODEL_NAME)
17
- QDRANT_COLLECTIONS_PARAMS = {'openai_large_chunks_1500char': {'collection_name': 'openai_large_chunks_1500char',
18
  'embeddings_model_name': 'text-embedding-3-large',
19
  'vector_size': 3072,
20
  'distance': Distance.COSINE,
 
14
  # Qdrant Collections Params
15
 
16
  openai_embeddings = OpenAIEmbeddings(model=settings.EMBEDDINGS_MODEL_NAME)
17
+ QDRANT_COLLECTIONS_PARAMS = {'openai_large_chunks_1000char': {'collection_name': 'openai_large_chunks_1000char',
18
  'embeddings_model_name': 'text-embedding-3-large',
19
  'vector_size': 3072,
20
  'distance': Distance.COSINE,
srf_chatbot_v2.code-workspace ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "folders": [
3
+ {
4
+ "path": "."
5
+ },
6
+ {
7
+ "path": "../py_innovations"
8
+ }
9
+ ],
10
+ "settings": {}
11
+ }