Update README.md
This commit is contained in:
parent
6fe468b4f4
commit
b2021216e9
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
|
@ -237,7 +237,15 @@ rag.insert(["TEXT1", "TEXT2",...])
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# Incremental Insert: Insert new documents into an existing LightRAG instance
|
# Incremental Insert: Insert new documents into an existing LightRAG instance
|
||||||
rag = LightRAG(working_dir="./dickens")
|
rag = LightRAG(
|
||||||
|
working_dir=WORKING_DIR,
|
||||||
|
llm_model_func=llm_model_func,
|
||||||
|
embedding_func=EmbeddingFunc(
|
||||||
|
embedding_dim=embedding_dimension,
|
||||||
|
max_token_size=8192,
|
||||||
|
func=embedding_func,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
with open("./newText.txt") as f:
|
with open("./newText.txt") as f:
|
||||||
rag.insert(f.read())
|
rag.insert(f.read())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue