Neo4j Native GraphRAG utilizes a knowledge graph and can be added as a capability to agents.
OPENAI_API_KEY
.
You can utilize an OAI_CONFIG_LIST file and extract the OpenAI API key
and put it in the environment, as will be shown in the following cell.
Alternatively, you can load the environment variable yourself.
GPT-4o
with json_object
output temperature=0.0
. - Question
Answering: OpenAI’s GPT-4o
with temperature=0.0
. - Embedding:
OpenAI’s text-embedding-3-large
. You need to provide its dimension for
the query engine later.
Neo4jNativeGraphQueryEngine
:
llm
: Specify a LLM instance with a llm you like for graph
construction, it must support json format responsequery_llm
: Specify a LLM instance with a llm you like for
querying. Don’t use json format response.embedding
: Specify a Embedder instance with a embedding model.