You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py
+8-8
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ def __init__(
44
44
To use default config, set to None. Otherwise, set to a dictionary with the following keys:
45
45
- task (Optional, str): the task of the retrieve chat. Possible values are "code", "qa" and "default". System
46
46
prompt will be different for different tasks. The default value is `default`, which supports both code and qa.
47
-
- client (Optional, qdrant_client.QdrantClient(":memory:")): A QdrantClient instance. If not provided, an in-memory instance will be assigned.`
47
+
- client (Optional, qdrant_client.QdrantClient(":memory:")): A QdrantClient instance. If not provided, an in-memory instance will be assigned. Not recommended for production.
48
48
will be used. If you want to use other vector db, extend this class and override the `retrieve_docs` function.
49
49
- docs_path (Optional, str): the path to the docs directory. It can also be the path to a single file,
50
50
or the url to a single file. Default is None, which works only if the collection is already created.
@@ -61,7 +61,7 @@ def __init__(
61
61
- must_break_at_empty_line (Optional, bool): chunk will only break at empty line if True. Default is True.
62
62
If chunk_mode is "one_line", this parameter will be ignored.
63
63
- embedding_model (Optional, str): the embedding model to use for the retrieve chat.
64
-
If key not provided, a default model `BAAI/bge-base-en-v1.5` will be used. All available models
64
+
If key not provided, a default model `BAAI/bge-small-en-v1.5` will be used. All available models
65
65
can be found at `https://qdrant.github.io/fastembed/examples/Supported_Models/`.
66
66
- customized_prompt (Optional, str): the customized prompt for the retrieve chat. Default is None.
67
67
- customized_answer_prefix (Optional, str): the customized answer prefix for the retrieve chat. Default is "".
collection_name (Optional, str): the name of the collection. Default is "all-my-documents".
155
155
chunk_mode (Optional, str): the chunk mode. Default is "multi_lines".
156
156
must_break_at_empty_line (Optional, bool): Whether to break at empty line. Default is True.
157
-
embedding_model (Optional, str): the embedding model to use. Default is "BAAI/bge-base-en-v1.5". The list of all the available models can be at https://qdrant.github.io/fastembed/examples/Supported_Models/.
157
+
embedding_model (Optional, str): the embedding model to use. Default is "BAAI/bge-small-en-v1.5". The list of all the available models can be at https://qdrant.github.io/fastembed/examples/Supported_Models/.
158
158
parallel (Optional, int): How many parallel workers to use for embedding. Defaults to the number of CPU cores
159
159
on_disk (Optional, bool): Whether to store the collection on disk. Default is False.
160
-
quantization_config: Quantization configuration. If None, quantization will be disabled.
161
-
hnsw_config: HNSW configuration. If None, default configuration will be used.
160
+
quantization_config: Quantization configuration. If None, quantization will be disabled. Ref: https://qdrant.github.io/qdrant/redoc/index.html#tag/collections/operation/create_collection
161
+
hnsw_config: HNSW configuration. If None, default configuration will be used. Ref: https://qdrant.github.io/qdrant/redoc/index.html#tag/collections/operation/create_collection
162
162
payload_indexing: Whether to create a payload index for the document field. Default is False.
163
163
qdrant_client_options: (Optional, dict): the options for instantiating the qdrant client. Reference: https://github.com/qdrant/qdrant-client/blob/master/qdrant_client/qdrant_client.py#L36-L58.
164
164
"""
@@ -214,7 +214,7 @@ def query_qdrant(
214
214
client: QdrantClient=None,
215
215
collection_name: str="all-my-documents",
216
216
search_string: str="",
217
-
embedding_model: str="BAAI/bge-base-en-v1.5",
217
+
embedding_model: str="BAAI/bge-small-en-v1.5",
218
218
qdrant_client_options: Optional[Dict] = {},
219
219
) ->List[List[QueryResponse]]:
220
220
"""Perform a similarity search with filters on a Qdrant collection
0 commit comments