zrguo commited on
Commit
b9e4eb4
·
2 Parent(s): 58f78e8 a91364d

Merge pull request #240 from HTplex/patch-1

Browse files

add missing imports to examples in README.md

Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -142,6 +142,7 @@ rag = LightRAG(
142
  ```python
143
  from lightrag.llm import hf_model_complete, hf_embedding
144
  from transformers import AutoModel, AutoTokenizer
 
145
 
146
  # Initialize LightRAG with Hugging Face model
147
  rag = LightRAG(
@@ -172,6 +173,7 @@ Then you only need to set LightRAG as follows:
172
 
173
  ```python
174
  from lightrag.llm import ollama_model_complete, ollama_embedding
 
175
 
176
  # Initialize LightRAG with Ollama model
177
  rag = LightRAG(
 
142
  ```python
143
  from lightrag.llm import hf_model_complete, hf_embedding
144
  from transformers import AutoModel, AutoTokenizer
145
+ from lightrag.utils import EmbeddingFunc
146
 
147
  # Initialize LightRAG with Hugging Face model
148
  rag = LightRAG(
 
173
 
174
  ```python
175
  from lightrag.llm import ollama_model_complete, ollama_embedding
176
+ from lightrag.utils import EmbeddingFunc
177
 
178
  # Initialize LightRAG with Ollama model
179
  rag = LightRAG(