@@ -56,10 +56,9 @@ In practice, it's done with only a few lines of code:
5656 print (response.answer)
5757
5858
59- .. note ::
59+ .. warning ::
6060
61- In order to run this code, the `openai ` Python package needs to be installed:
62- `pip install openai `
61+ Using `OpenAILLM ` requires the `openai ` Python client. You can install it with `pip install "neo4j_graphrag[openai]" `.
6362
6463
6564The following sections provide more details about how to customize this code.
@@ -108,7 +107,7 @@ to learn more about the configuration.
108107.. note ::
109108
110109 In order to run this code, the `openai ` Python package needs to be installed:
111- `pip install openai `
110+ `pip install "neo4j_graphrag[ openai]" `
112111
113112
114113See :ref: `azureopenaillm `.
@@ -134,7 +133,7 @@ To use VertexAI, instantiate the `VertexAILLM` class:
134133 .. note ::
135134
136135 In order to run this code, the `google-cloud-aiplatform ` Python package needs to be installed:
137- `pip install google-cloud-aiplatform `
136+ `pip install "neo4j_grpahrag[vertexai]" `
138137
139138
140139See :ref: `vertexaillm `.
@@ -160,7 +159,7 @@ To use Anthropic, instantiate the `AnthropicLLM` class:
160159 .. note ::
161160
162161 In order to run this code, the `anthropic ` Python package needs to be installed:
163- `pip install anthropic `
162+ `pip install "neo4j_graphrag[ anthropic]" `
164163
165164See :ref: `anthropicllm `.
166165
@@ -184,7 +183,7 @@ To use MistralAI, instantiate the `MistralAILLM` class:
184183 .. note ::
185184
186185 In order to run this code, the `mistralai ` Python package needs to be installed:
187- `pip install mistralai `
186+ `pip install "neo4j_graphrag[ mistralai]" `
188187
189188See :ref: `mistralaillm `.
190189
@@ -209,7 +208,7 @@ To use Cohere, instantiate the `CohereLLM` class:
209208 .. note ::
210209
211210 In order to run this code, the `cohere ` Python package needs to be installed:
212- `pip install cohere `
211+ `pip install "neo4j_graphrag[ cohere]" `
213212
214213
215214See :ref: `coherellm `.
@@ -630,7 +629,7 @@ Weaviate Retrievers
630629.. note ::
631630
632631 In order to import this retriever, the Weaviate Python client must be installed:
633- `pip install weaviate-client `
632+ `pip install "neo4j_graphrag[ weaviate]" `
634633
635634
636635.. code :: python
@@ -663,7 +662,7 @@ Pinecone Retrievers
663662.. note ::
664663
665664 In order to import this retriever, the Pinecone Python client must be installed:
666- `pip install pinecone-client `
665+ `pip install "neo4j_graphrag[ pinecone]" `
667666
668667
669668.. code :: python
@@ -691,7 +690,7 @@ Qdrant Retrievers
691690.. note ::
692691
693692 In order to import this retriever, the Qdrant Python client must be installed:
694- `pip install qdrant-client `
693+ `pip install "neo4j_graphrag[ qdrant]" `
695694
696695
697696.. code :: python
@@ -787,7 +786,7 @@ LLMs can be different.
787786
788787 from neo4j import GraphDatabase
789788 from neo4j_graphrag.retrievers import Text2CypherRetriever
790- from neo4j_graphrag.llm.openai import OpenAILLM
789+ from neo4j_graphrag.llm import OpenAILLM
791790
792791 URI = " neo4j://localhost:7687"
793792 AUTH = (" neo4j" , " password" )
@@ -796,7 +795,7 @@ LLMs can be different.
796795 driver = GraphDatabase.driver(URI , auth = AUTH )
797796
798797 # Create LLM object
799- llm = OpenAILLM(model_name = " gpt-3.5-turbo " )
798+ llm = OpenAILLM(model_name = " gpt-4o " )
800799
801800 # (Optional) Specify your own Neo4j schema
802801 neo4j_schema = """
@@ -833,6 +832,10 @@ LLMs can be different.
833832 print (retriever.search(query_text = query_text))
834833
835834
835+ .. warning ::
836+
837+ Using `OpenAILLM ` requires the `openai ` Python client. You can install it with `pip install "neo4j_graphrag[openai]" `.
838+
836839.. note ::
837840
838841 Since we are not performing any similarity search (vector index), the Text2Cypher
0 commit comments