[Vector] Introduce to VectorTools class - #23
Merged
Merged
Conversation
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Here first version of Vector and Embedding tools.
Main goal here is to make 100% custom agent. Using vectors.
Here an example of a Doppar assistant agent, based on the official docs :
It only works with OpenAI yet, because we need a provider that can support vector embed
Here the LLM result :
To create a new OpenAI Agent in Doppar AI, you can follow the steps outlined below. This will set you up to interact with the OpenAI large language model using the Agent component.
Step 1: Install Doppar AI
Ensure you have Doppar AI installed in your PHP application:
Step 2: Register the AI Service Provider
Register the AI service provider in your
config/app.phpfile:Step 3: Set Up Your OpenAI API Key
Make sure to set your OpenAI API key in the environment file (
.env):Step 4: Create the OpenAI Agent
You can create an OpenAI Agent instance in your application code. Here’s an example of how to do this:
Step 5: Customize Your Agent (Optional)
You can customize your agent by adjusting parameters such as temperature, max tokens, and adding system messages as needed. Here is an example of adding a system message and customizing parameters:
Now you have a working OpenAI Agent set up within your Doppar AI application! You can adjust the prompts and parameters as needed to create various types of interactions with the OpenAI model.