Clean Versions
Browse files- ChromaDBFlow.py +8 -1
- ChromaDBFlow.yaml +2 -3
ChromaDBFlow.py
CHANGED
|
@@ -37,7 +37,14 @@ class ChromaDBFlow(AtomicFlow):
|
|
| 37 |
default parameters of LiteLLMBackend (see aiflows.backends.LiteLLMBackend). Except for the following parameter whose default value is overwritten:
|
| 38 |
- `api_infos` (List[Dict[str, Any]]): The list of api infos. Default: No default value, this parameter is required.
|
| 39 |
- `model_name` (str): The name of the model. Default: "". In the current implementation, this parameter is not used.
|
| 40 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
- Other parameters are inherited from the default configuration of AtomicFlow (see AtomicFlow)
|
| 42 |
|
| 43 |
*Input Interface*:
|
|
|
|
| 37 |
default parameters of LiteLLMBackend (see aiflows.backends.LiteLLMBackend). Except for the following parameter whose default value is overwritten:
|
| 38 |
- `api_infos` (List[Dict[str, Any]]): The list of api infos. Default: No default value, this parameter is required.
|
| 39 |
- `model_name` (str): The name of the model. Default: "". In the current implementation, this parameter is not used.
|
| 40 |
+
- `similarity_search_kwargs` (Dict[str, Any]): The parameters to pass to the similarity search method of the ChromaDB. Default:
|
| 41 |
+
- `k` (int): The number of documents to retrieve. Default: 2
|
| 42 |
+
- `filter` (str): The filter to apply to the documents. Default: null
|
| 43 |
+
- `paths_to_data` (List[str]): The paths to the data to store in the database at instantiation. Default: []
|
| 44 |
+
- `chunk_size` (int): The size of the chunks to split the documents into. Default: 700
|
| 45 |
+
- `chunk_overlap` (int): The overlap between the chunks. Default: 0
|
| 46 |
+
- `persist_directory` (str): The directory to persist the database. Default: "./demo_db_dir"
|
| 47 |
+
|
| 48 |
- Other parameters are inherited from the default configuration of AtomicFlow (see AtomicFlow)
|
| 49 |
|
| 50 |
*Input Interface*:
|
ChromaDBFlow.yaml
CHANGED
|
@@ -13,8 +13,7 @@ input_interface:
|
|
| 13 |
- content
|
| 14 |
output_interface:
|
| 15 |
- retrieved
|
| 16 |
-
paths_to_data:
|
| 17 |
-
|
| 18 |
-
chunk_size: 300
|
| 19 |
chunk_overlap: 0
|
| 20 |
persist_directory: ./demo_db_dir
|
|
|
|
| 13 |
- content
|
| 14 |
output_interface:
|
| 15 |
- retrieved
|
| 16 |
+
paths_to_data: []
|
| 17 |
+
chunk_size: 700
|
|
|
|
| 18 |
chunk_overlap: 0
|
| 19 |
persist_directory: ./demo_db_dir
|