docs: explain AddConfig (#327)
This commit is contained in:
@@ -18,6 +18,14 @@ title: '🔍 Query configurations'
|
|||||||
|chunker|chunker config|ChunkerConfig|Default values for chunker depends on the `data_type`. Please refer [ChunkerConfig](#chunker-config)|
|
|chunker|chunker config|ChunkerConfig|Default values for chunker depends on the `data_type`. Please refer [ChunkerConfig](#chunker-config)|
|
||||||
|loader|loader config|LoaderConfig|None|
|
|loader|loader config|LoaderConfig|None|
|
||||||
|
|
||||||
|
Yes, you are passing `ChunkerConfig` to `AddConfig`, like so:
|
||||||
|
|
||||||
|
```python
|
||||||
|
chunker_config = ChunkerConfig(chunk_size=100)
|
||||||
|
add_config = AddConfig(chunker=chunker_config)
|
||||||
|
app.add_local("text", "lorem ipsum", config=add_config)
|
||||||
|
```
|
||||||
|
|
||||||
### ChunkerConfig
|
### ChunkerConfig
|
||||||
|
|
||||||
|option|description|type|default|
|
|option|description|type|default|
|
||||||
|
|||||||
Reference in New Issue
Block a user