-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add ollama support #313
Add ollama support #313
Conversation
* NOTE - I had to stop instructing the AI to create very long data in this prompt. | ||
* It would end up repeating 9999999 ad infinitum and break JSON responses. | ||
*/ | ||
export const LLAMA_3_8B_QA_PARAMETER_GENERATION_SYSTEM_PROMPT = cleanPrompt(` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE!!! I have not updated the "hostile" prompt at all yet, it may run into issues
@@ -302,6 +308,176 @@ Use the tool "make_request". Always respond in valid JSON. | |||
***Don't make your responses too long, otherwise we cannot parse your JSON response.*** | |||
`); | |||
|
|||
export const LLAMA_3_8B_FRIENDLY_PARAMETER_GENERATION_SYSTEM_PROMPT = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this prompt has been modified from the OG system prompt we usually send to anthropic and openai
i found that reducing the scope of what we're trying to do worked better. so, we ONLY tell it to deal with json bodies, not worry about text + form data + etc
fc1e93d
to
59bb8e3
Compare
commit: |
we should show a nice message when you've picked a model in ollama that has not been pulled |
A cursory test of the Llama 3.1 model shows that it has become quite capable of supporting some of our request generation use cases. This makes for a good case to add support for using the Fiberplane Studio with Ollama.
To test:
ollama run llama3.1
pnpm build:types
from the root)ollama