Skip to content

Commit

Permalink
Change default model to gpt3.5 turbo (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeMoussalli authored Dec 19, 2023
1 parent 9e912be commit 2206a6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
" \"retrieval_top_k\": 2,\n",
" \"evaluation_module\": \"langchain.llms\",\n",
" \"evaluation_llm\": \"OpenAI\",\n",
" \"evaluation_llm_kwargs\": {\"openai_api_key\": os.environ[\"OPENAI_KEY\"]}, # TODO: Update with your key or use a different model\n",
" \"evaluation_llm_kwargs\": {\"openai_api_key\": os.environ[\"OPENAI_KEY\"], model_name : \"gpt-3.5-turbo\"}, # TODO: Update with your key or use a different model\n",
" \"evaluation_metrics\": [\"context_precision\", \"context_relevancy\"]\n",
"}\n",
"\n",
Expand Down Expand Up @@ -495,7 +495,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion src/pipeline_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def create_pipeline(
retrieval_top_k: int = 3,
evaluation_module: str = "langchain.llms",
evaluation_llm: str = "OpenAI",
evaluation_llm_kwargs: dict = {},
evaluation_llm_kwargs: dict = {"model_name": "gpt-3.5-turbo"},
evaluation_metrics: list = ["context_precision", "context_relevancy"],
):
"""Create a Fondant pipeline based on the provided arguments."""
Expand Down

0 comments on commit 2206a6d

Please sign in to comment.