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
+19-3
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ def __init__(
47
47
will be used. If you want to use other vector db, extend this class and override the `retrieve_docs` function.
48
48
- docs_path (Optional, Union[str, List[str]]): the path to the docs directory. It can also be the path to a single file,
49
49
the url to a single file or a list of directories, files and urls. Default is None, which works only if the collection is already created.
50
+
- extra_docs (Optional, bool): when true, allows adding documents with unique IDs without overwriting existing ones; when false, it replaces existing documents using default IDs, risking collection overwrite.,
51
+
when set to true it enables the system to assign unique IDs starting from "length+i" for new document chunks, preventing the replacement of existing documents and facilitating the addition of more content to the collection..
52
+
By default, "extra_docs" is set to false, starting document IDs from zero. This poses a risk as new documents might overwrite existing ones, potentially causing unintended loss or alteration of data in the collection.
50
53
- collection_name (Optional, str): the name of the collection.
51
54
If key not provided, a default name `autogen-docs` will be used.
52
55
- model (Optional, str): the model to use for the retrieve chat.
Copy file name to clipboardExpand all lines: autogen/agentchat/contrib/retrieve_user_proxy_agent.py
+5
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,9 @@ def __init__(
100
100
will be used. If you want to use other vector db, extend this class and override the `retrieve_docs` function.
101
101
- docs_path (Optional, Union[str, List[str]]): the path to the docs directory. It can also be the path to a single file,
102
102
the url to a single file or a list of directories, files and urls. Default is None, which works only if the collection is already created.
103
+
- extra_docs (Optional, bool): when true, allows adding documents with unique IDs without overwriting existing ones; when false, it replaces existing documents using default IDs, risking collection overwrite.,
104
+
when set to true it enables the system to assign unique IDs starting from "length+i" for new document chunks, preventing the replacement of existing documents and facilitating the addition of more content to the collection..
105
+
By default, "extra_docs" is set to false, starting document IDs from zero. This poses a risk as new documents might overwrite existing ones, potentially causing unintended loss or alteration of data in the collection.
103
106
- collection_name (Optional, str): the name of the collection.
104
107
If key not provided, a default name `autogen-docs` will be used.
105
108
- model (Optional, str): the model to use for the retrieve chat.
0 commit comments