update README.md
This commit is contained in:
@@ -86,10 +86,17 @@ rag = LightRAG(
|
|||||||
working_dir=WORKING_DIR,
|
working_dir=WORKING_DIR,
|
||||||
llm_model_func=hf_model_complete, # Use Hugging Face complete model for text generation
|
llm_model_func=hf_model_complete, # Use Hugging Face complete model for text generation
|
||||||
llm_model_name='meta-llama/Llama-3.1-8B-Instruct', # Model name from Hugging Face
|
llm_model_name='meta-llama/Llama-3.1-8B-Instruct', # Model name from Hugging Face
|
||||||
embedding_func=hf_embedding, # Use Hugging Face embedding function
|
# Use Hugging Face embedding function
|
||||||
|
embedding_func=EmbeddingFunc(
|
||||||
|
embedding_dim=384,
|
||||||
|
max_token_size=5000,
|
||||||
|
func=lambda texts: hf_embedding(
|
||||||
|
texts,
|
||||||
tokenizer=AutoTokenizer.from_pretrained("sentence-transformers/all-MiniLM-L6-v2"),
|
tokenizer=AutoTokenizer.from_pretrained("sentence-transformers/all-MiniLM-L6-v2"),
|
||||||
embed_model=AutoModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2")
|
embed_model=AutoModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2")
|
||||||
)
|
)
|
||||||
|
),
|
||||||
|
)
|
||||||
```
|
```
|
||||||
### Batch Insert
|
### Batch Insert
|
||||||
```python
|
```python
|
||||||
|
Reference in New Issue
Block a user