Skip to content

Commit

Permalink
Update models in Ragas documentation: change gpt-3.5-turbo-16k to gpt…
Browse files Browse the repository at this point in the history
…-4o-mini and gpt-4 to gpt-4o
  • Loading branch information
suekou committed Sep 29, 2024
1 parent a42263f commit 0e5c883
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/concepts/testset_generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ from langchain_openai import ChatOpenAI, OpenAIEmbeddings
# documents = load your documents

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
generator_llm = ChatOpenAI(model="gpt-4o-mini")
critic_llm = ChatOpenAI(model="gpt-4o")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
Expand Down
4 changes: 2 additions & 2 deletions docs/howtos/applications/compare_embeddings.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ query_space = "large language models"
documents = loader.load_data(query=query_space, limit=100)

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
generator_llm = ChatOpenAI(model="gpt-4o-mini")
critic_llm = ChatOpenAI(model="gpt-4o")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
Expand Down
4 changes: 2 additions & 2 deletions docs/howtos/applications/compare_llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ reader = SimpleDirectoryReader("./arxiv-papers/",num_files_limit=30)
documents = reader.load_data()

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
generator_llm = ChatOpenAI(model="gpt-4o-mini")
critic_llm = ChatOpenAI(model="gpt-4o")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
Expand Down
4 changes: 2 additions & 2 deletions docs/howtos/applications/use_prompt_adaptation.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ from ragas.testset.evolutions import simple, reasoning, multi_context,conditiona
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

# generator with openai models
generator_llm = ChatOpenAI(model="gpt-3.5-turbo-16k")
critic_llm = ChatOpenAI(model="gpt-4")
generator_llm = ChatOpenAI(model="gpt-4o-mini")
critic_llm = ChatOpenAI(model="gpt-4o")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
Expand Down

0 comments on commit 0e5c883

Please sign in to comment.