Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
add missing imports to examples in README.md
  • Loading branch information
HTplex authored Nov 9, 2024
1 parent d86aed7 commit 20a8136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ rag = LightRAG(
```python
from lightrag.llm import hf_model_complete, hf_embedding
from transformers import AutoModel, AutoTokenizer
from lightrag.utils import EmbeddingFunc

# Initialize LightRAG with Hugging Face model
rag = LightRAG(
Expand Down Expand Up @@ -172,6 +173,7 @@ Then you only need to set LightRAG as follows:

```python
from lightrag.llm import ollama_model_complete, ollama_embedding
from lightrag.utils import EmbeddingFunc

# Initialize LightRAG with Ollama model
rag = LightRAG(
Expand Down

0 comments on commit 20a8136

Please sign in to comment.