Skip to content

Commit

Permalink
Changed model in t2c examples to gpt-3.5-turbo-0125 (#125)
Browse files Browse the repository at this point in the history
* Changed model in t2c examples to gpt-3.5-turbo-0125

* Use more generic gpt-3.5-turbo in example and doc for Text2CypherRetriever
  • Loading branch information
willtai authored Sep 10, 2024
1 parent c284b08 commit 19fbace
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/user_guide_rag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ LLMs can be different.
driver = GraphDatabase.driver(URI, auth=AUTH)
# Create LLM object
llm = OpenAILLM(model_name="gpt-3.5-turbo-instruct")
llm = OpenAILLM(model_name="gpt-3.5-turbo")
# (Optional) Specify your own Neo4j schema
neo4j_schema = """
Expand Down
6 changes: 3 additions & 3 deletions examples/text2cypher_search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from langchain_openai import OpenAI
from neo4j import GraphDatabase
from neo4j_genai.llm import OpenAILLM
from neo4j_genai.retrievers.text2cypher import Text2CypherRetriever

URI = "neo4j://localhost:7687"
Expand All @@ -9,7 +9,7 @@
driver = GraphDatabase.driver(URI, auth=AUTH)

# Create LLM object
llm = OpenAI(model="gpt-3.5-turbo-instruct")
llm = OpenAILLM(model_name="gpt-3.5-turbo", model_params={"temperature": 0})

# (Optional) Specify your own Neo4j schema
neo4j_schema = """
Expand All @@ -36,7 +36,7 @@
# Initialize the retriever
retriever = Text2CypherRetriever(
driver=driver,
llm=llm, # type: ignore
llm=llm,
neo4j_schema=neo4j_schema,
examples=examples,
)
Expand Down

0 comments on commit 19fbace

Please sign in to comment.