add documentation for 'Insert with ID'
This commit is contained in:
parent
d462ace978
commit
70de1476c3
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -545,6 +545,20 @@ The `insert_batch_size` parameter in `addon_params` controls how many documents
|
|||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary> <b> Insert with ID </b></summary>
|
||||
|
||||
If you want to provide your own IDs for your documents, number of documents and number of IDs must be the same.
|
||||
|
||||
```python
|
||||
# Insert single text, and provide ID for it
|
||||
rag.insert("TEXT1", ids=["ID_FOR_TEXT1"])
|
||||
|
||||
# Insert multiple texts, and provide IDs for them
|
||||
rag.insert(["TEXT1", "TEXT2",...], ids=["ID_FOR_TEXT1", "ID_FOR_TEXT2"])
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Incremental Insert</b></summary>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue