Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents OpenAI Connector setup #5199

Merged
merged 6 commits into from
May 13, 2024
Merged

Documents OpenAI Connector setup #5199

merged 6 commits into from
May 13, 2024

Conversation

benironside
Copy link
Contributor

@benironside benironside commented May 12, 2024

Fixes #5137 by adding a step-by-step guide for setting up an OpenAI connector.

Preview: Connect to OpenAI

@benironside benironside added the Team: GenAI Generative AI team label May 12, 2024
@benironside benironside self-assigned this May 12, 2024
@benironside benironside requested a review from a team as a code owner May 12, 2024 19:49
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

Copy link
Contributor

mergify bot commented May 12, 2024

This pull request does not have a backport label. Could you fix it @benironside? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • v7.x is the label to automatically backport to the 7.x branch.
  • v7./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

Copy link
Contributor

@joepeeples joepeeples left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple comments for consideration, thanks!

docs/assistant/connect-to-openai.asciidoc Outdated Show resolved Hide resolved
docs/assistant/connect-to-openai.asciidoc Outdated Show resolved Hide resolved
docs/assistant/connect-to-openai.asciidoc Show resolved Hide resolved
docs/assistant/images/openai-model-string.png Outdated Show resolved Hide resolved
Copy link
Contributor

@joepeeples joepeeples left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@benironside benironside merged commit 2ce49d0 into main May 13, 2024
3 checks passed
mergify bot pushed a commit that referenced this pull request May 13, 2024
* incorporates Dhru's first review

* Adds page for OpenAI connector setup

* Minor edit

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* removes unused image

---------

Co-authored-by: Joe Peeples <[email protected]>
(cherry picked from commit 2ce49d0)
mergify bot pushed a commit that referenced this pull request May 13, 2024
* incorporates Dhru's first review

* Adds page for OpenAI connector setup

* Minor edit

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* removes unused image

---------

Co-authored-by: Joe Peeples <[email protected]>
(cherry picked from commit 2ce49d0)
benironside added a commit that referenced this pull request May 13, 2024
* incorporates Dhru's first review

* Adds page for OpenAI connector setup

* Minor edit

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* removes unused image

---------

Co-authored-by: Joe Peeples <[email protected]>
(cherry picked from commit 2ce49d0)

Co-authored-by: Benjamin Ironside Goldstein <[email protected]>
benironside added a commit that referenced this pull request May 13, 2024
* incorporates Dhru's first review

* Adds page for OpenAI connector setup

* Minor edit

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* Update docs/assistant/connect-to-openai.asciidoc

Co-authored-by: Joe Peeples <[email protected]>

* removes unused image

---------

Co-authored-by: Joe Peeples <[email protected]>
(cherry picked from commit 2ce49d0)

Co-authored-by: Benjamin Ironside Goldstein <[email protected]>
Copy link

@Charelzard Charelzard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added 2 comments for review.


Before creating an API key, you must choose a model. Refer to the https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4[OpenAI docs] to select a model. Take note of the specific model name (for example `gpt-4-turbo`); you'll need it when configuring {kib}.

NOTE: `GPT-4 Turbo` offers increased performance. `GPT-4` and `GPT-3.5` are also supported.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: For best performance we recommend gpt-4o. Alternatively you can use gpt-4-turbo, but at a minimum, gpt-4-32k can be used.


--


or

. Navigate to **Stack Management → Connectors → Create Connector → OpenAI**.
. Provide a name for your connector, such as `OpenAI (GPT-4 Turbo Preview)`, to help keep track of the model and version you are using.
. Under **Select an OpenAI provider**, choose **OpenAI**.
. The **URL** field can be left as default.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this line after . The URL field can be left as default.
In the default model specify your model of choice. This section can be updated later on to reflect new releases in models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] Connect Elastic AI Assistant to OpenAI
3 participants