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

Assistants creation scripts #7

Merged
merged 22 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ PROXY=
# Anthropic #
#============#

ANTHROPIC_API_KEY=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
ANTHROPIC_API_KEY=
# ANTHROPIC_MODELS=claude-3-opus-20240229,claude-3-sonnet-20240229,claude-3-haiku-20240307,claude-2.1,claude-2,claude-1.2,claude-1,claude-1-100k,claude-instant-1,claude-instant-1-100k
# ANTHROPIC_REVERSE_PROXY=

Expand Down Expand Up @@ -193,9 +193,15 @@ DEBUG_OPENAI=false
# Assistants API #
#====================#

ASSISTANTS_API_KEY=c3e37d558bea46ca917dd2be40ee69d4
# ASSISTANTS_BASE_URL=
# ASSISTANTS_MODELS=gpt-3.5-turbo-0125,gpt-3.5-turbo-16k-0613,gpt-3.5-turbo-16k,gpt-3.5-turbo,gpt-4,gpt-4-0314,gpt-4-32k-0314,gpt-4-0613,gpt-3.5-turbo-0613,gpt-3.5-turbo-1106,gpt-4-0125-preview,gpt-4-turbo-preview,gpt-4-1106-preview
ASSISTANTS_API_KEY=

# Needed when updating an assistant, see assistants/openai_assistants. Leave blank to create new
ASSISTANTS_API_TYPE=azure
ASSISTANTS_ID=
ASSISTANTS_BASE_URL=
ASSISTANTS_API_VERSION=
ASSISTANTS_MODEL=
ASSISTANTS_BOT_NAME=

#============#
# OpenRouter #
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ actions/actions_plugins/recipe-server/images
__pycache__
ui/recipes_assistant_chat/datadb
ui/recipes_assistant_chat/docsdb
ui/recipes_assistant_chat/recipesdb
ui/recipes_assistant_chat/recipesdb
instructions.txt
dataset_details.json
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ repos:
rev: 1.7.0
hooks:
- id: interrogate
args: [--fail-under=65, --verbose]
args: [--fail-under=65, --verbose]
exclude: __init__.py
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ This repo contains components for the humanitarian AI Assitant developed by Data

It has the following components:

- [LibraChat](https://docs.librechat.ai/) chat interface
- [LibreChat](https://docs.librechat.ai/) chat interface
- [Robocorp actions-server](https://github.com/robocorp/robocorp)

Being added soon ....

- Databases
- Data Ingestion Pipeline
- Assistant creation
Expand Down Expand Up @@ -46,8 +43,16 @@ TODO: This will be automated, but for now ...
7. Save the action
8. Update the agent

>>>>>> GOT TO HAPI TO GET KEY

Note: You can reset Libre chat by removing contents of `ui/recipes_assistant_chat/data-node/`. This is sometimes neccesary due to a bug in specifying actions.

## managing Assistants

You can create new Azure OpenAI or OpenAI assistants as follows:

<TO DO Add instructions on create_update_assistant.py and importing >

## Reseting your environment

If running locally, you can reset your environment - removing any data for your databases, which means re-registration - by running `./cleanuop.sh`.
Expand All @@ -62,7 +67,7 @@ If running locally, you can reset your environment - removing any data for your
-d '{"chat_history": "[]", "user_input":"population of Mali", "generate_intent":"true"}' \
"http://actions:8080/api/actions/get-data-recipe-memory/get-memory/run"``

## LibraChat Plugins
## LibreChat Plugins

With a defined set of functionalities, [plugins](https://docs.librechat.ai/features/plugins/introduction.html) act as tools for the LLM application to use and extend their capabilities.

Expand Down
Loading