Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/source/user_guide_rag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ it can be queried using the following:
.. code:: python

from neo4j_graphrag.llm import OllamaLLM
llm = OllamaLLM(model_name="orca-mini")
llm = OllamaLLM(
model_name="orca-mini",
# host="...", # when using a remote server
)
llm.invoke("say something")


Expand Down
1 change: 1 addition & 0 deletions examples/customize/embeddings/ollama_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

embeder = OllamaEmbeddings(
model="<model_name>",
# host="...", # if using a remote server
)
res = embeder.embed_query("my question")
print(res[:10])
1 change: 1 addition & 0 deletions examples/customize/llms/ollama_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

llm = OllamaLLM(
model_name="<model_name>",
# host="...", # if using a remote server
)
res: LLMResponse = llm.invoke("What is the additive color model?")
print(res.content)
Loading