From c8e30582a134a3347ff9c24b280f7db6872e34b3 Mon Sep 17 00:00:00 2001 From: parkervg Date: Tue, 15 Oct 2024 20:11:52 -0400 Subject: [PATCH] Include OpenAI LLM in quickstart example --- README.md | 3 ++- docs/quickstart.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e5365daa..68c0357b 100644 --- a/README.md +++ b/README.md @@ -157,9 +157,10 @@ import pandas as pd from blendsql import blend, LLMMap, LLMQA, LLMJoin from blendsql.db import Pandas -from blendsql.models import TransformersLLM +from blendsql.models import TransformersLLM, OpenaiLLM # Load model +# model = OpenaiLLM("gpt-4o") # If you have a .env present with OpenAI API keys model = TransformersLLM('Qwen/Qwen1.5-0.5B') # Prepare our local database diff --git a/docs/quickstart.md b/docs/quickstart.md index 1333fd8c..e6f0068a 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -9,9 +9,10 @@ import pandas as pd from blendsql import blend, LLMMap, LLMQA, LLMJoin from blendsql.db import Pandas -from blendsql.models import TransformersLLM +from blendsql.models import TransformersLLM, OpenaiLLM # Load model +# model = OpenaiLLM("gpt-4o") # If you have a .env present with OpenAI API keys model = TransformersLLM('Qwen/Qwen1.5-0.5B') # Prepare our local database