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:
223223.. code :: python
224224
225225 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+ )
227230 llm.invoke(" say something" )
228231
229232
Original file line number Diff line number Diff line change 66
77embeder = OllamaEmbeddings (
88 model = "<model_name>" ,
9+ # host="...", # if using a remote server
910)
1011res = embeder .embed_query ("my question" )
1112print (res [:10 ])
Original file line number Diff line number Diff line change 66
77llm = OllamaLLM (
88 model_name = "<model_name>" ,
9+ # host="...", # if using a remote server
910)
1011res : LLMResponse = llm .invoke ("What is the additive color model?" )
1112print (res .content )
You can’t perform that action at this time.
0 commit comments