File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,10 @@ it can be queried using the following:
223
223
.. code :: python
224
224
225
225
from neo4j_graphrag.llm import OllamaLLM
226
- llm = OllamaLLM(model_name = " orca-mini" )
226
+ llm = OllamaLLM(
227
+ model_name = " orca-mini" ,
228
+ # host="...", # when using a remote server
229
+ )
227
230
llm.invoke(" say something" )
228
231
229
232
Original file line number Diff line number Diff line change 6
6
7
7
embeder = OllamaEmbeddings (
8
8
model = "<model_name>" ,
9
+ # host="...", # if using a remote server
9
10
)
10
11
res = embeder .embed_query ("my question" )
11
12
print (res [:10 ])
Original file line number Diff line number Diff line change 6
6
7
7
llm = OllamaLLM (
8
8
model_name = "<model_name>" ,
9
+ # host="...", # if using a remote server
9
10
)
10
11
res : LLMResponse = llm .invoke ("What is the additive color model?" )
11
12
print (res .content )
You can’t perform that action at this time.
0 commit comments