Skip to content

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
@github-actions
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.

@mergify
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!

benironside and others added 3 commits May 13, 2024 12:31
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
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
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 <joe.peeples@elastic.co>

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

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>

* removes unused image

---------

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(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 <joe.peeples@elastic.co>

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

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>

* removes unused image

---------

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(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 <joe.peeples@elastic.co>

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

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>

* removes unused image

---------

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(cherry picked from commit 2ce49d0)

Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
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 <joe.peeples@elastic.co>

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

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>

* removes unused image

---------

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
(cherry picked from commit 2ce49d0)

Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
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

4 participants