MCPcopy
hub / github.com/LAION-AI/Open-Assistant

github.com/LAION-AI/Open-Assistant @v0.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.0.1 ↗
2,351 symbols 8,399 edges 632 files 357 documented · 15%
README

Open-Assistant

GitHub Repo stars Docs GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub release (latest by date)

Table of Contents


What is Open Assistant?

Open Assistant is a project meant to give everyone access to a great chat based large language model.

We believe that by doing this we will create a revolution in innovation in language. In the same way that stable-diffusion helped the world make art and images in new ways we hope Open Assistant can help improve the world by improving language itself.

Useful Links

How To Try It Out

Chatting with the AI

The chat frontend is now live here. Log in and start chatting! Please try to react with a thumbs up or down for the assistant's responses when chatting.

Contributing to Data Collection

The data collection frontend is now live here. Log in and start taking on tasks! We want to collect a high volume of quality data. By submitting, ranking, and labelling model prompts and responses you will be directly helping to improve the capabilities of Open Assistant.

Running Locally

You do not need to run the project locally unless you are contributing to the development process. The website link above will take you to the public website where you can use the data collection app.

If you would like to run the data collection app locally for development, you can set up an entire stack needed to run Open-Assistant, including the website, backend, and associated dependent services, with Docker.

To start the demo, run this in the root directory of the repository (check this FAQ if you have problems):

docker compose --profile ci up --build --attach-dependencies

Then, navigate to http://localhost:3000 (It may take some time to boot up) and interact with the website.

Note: If an issue occurs with the build, please head to the FAQ and check out the entries about Docker.

Note: When logging in via email, navigate to http://localhost:1080 to get the magic email login link.

Note: If you would like to run this in a standardized development environment (a "devcontainer") using vscode locally or in a web browser using GitHub Codespaces, you can use the provided .devcontainer folder.

The Vision

We are not going to stop at replicating ChatGPT. We want to build the assistant of the future, able to not only write email and cover letters, but do meaningful work, use APIs, dynamically research information, and much more, with the ability to be personalized and extended by anyone. And we want to do this in a way that is open and accessible, which means we must not only build a great assistant, but also make it small and efficient enough to run on consumer hardware.

The Plan

We want to get to an initial MVP as fast as possible, by following the 3-steps outlined in the InstructGPT paper
  1. Collect high-quality human generated Instruction-Fulfillment samples (prompt + response), goal >50k. We design a crowdsourced process to collect and reviewed prompts. We do not want to train on flooding/toxic/spam/junk/personal information data. We will have a leaderboard to motivate the community that shows progress and the most active users. Swag will be given to the top-contributors.
  2. For each of the collected prompts we will sample multiple completions. Completions of one prompt will then be shown randomly to users to rank them from best to worst. Again this should happen crowd-sourced, e.g. we need to deal with unreliable potentially malicious users. At least multiple votes by independent users have to be collected to measure the overall agreement. The gathered ranking-data will be used to train a reward model.
  3. Now follows the RLHF training phase based on the prompts and the reward model.

We can then take the resulting model and continue with completion sampling step 2 for a next iteration.

Slide Decks

Vision & Roadmap

Important Data Structures

How You Can Help

All open source projects begin with people like you. Open source is the belief that if we collaborate we can together gift our knowledge and technology to the world for the benefit of humanity.

Check out our contributing guide to get started.

Extension points exported contracts — how you extend this code

TrustedClient (Interface)
(no doc)
discord-bots/oa-bot-js/src/modules/inference/types.ts
Session (Interface)
(no doc)
website/types/next-auth.d.ts
MessageEmoji (Interface)
(no doc)
website/src/types/Conversation.ts
Chainable (Interface)
(no doc)
website/cypress/support/index.ts
InferenceToken (Interface)
(no doc)
discord-bots/oa-bot-js/src/modules/inference/types.ts
JWT (Interface)
(no doc)
website/types/next-auth.d.ts
MessageEmojis (Interface)
(no doc)
website/src/types/Conversation.ts
Chainable (Interface)
(no doc)
website/cypress/support/component.ts

Core symbols most depended-on inside this repo

filter
called by 201
scripts/data_augment/data_augment.py
get
called by 141
inference/worker/utils.py
text
called by 83
backend/oasst_backend/models/message.py
get
called by 76
website/src/lib/oasst_api_client.ts
add
called by 68
inference/worker/utils.py
log
called by 36
backend/oasst_backend/journal_writer.py
withoutRole
called by 30
website/src/lib/auth.ts
end
called by 29
inference/worker/hf_streamer.py

Shape

Function 1,122
Method 624
Class 374
Interface 116
Route 110
Enum 5

Languages

Python76%
TypeScript24%

Modules by API surface

oasst-shared/oasst_shared/schemas/protocol.py65 symbols
backend/oasst_backend/tree_manager.py65 symbols
discord-bots/oa-bot-py/bot/extensions/work.py59 symbols
model/model_training/custom_datasets/qa_datasets.py52 symbols
website/src/lib/oasst_api_client.ts50 symbols
backend/oasst_backend/prompt_repository.py45 symbols
oasst-shared/oasst_shared/schemas/inference.py38 symbols
scripts/data_augment/data_augment.py34 symbols
discord-bots/oa-bot-py/bot/messages.py32 symbols
backend/oasst_backend/api/v1/messages.py31 symbols
inference/server/oasst_inference_server/routes/auth.py29 symbols
backend/oasst_backend/api/v1/users.py27 symbols

Dependencies from manifests, versioned

@babel/core7.21.3 · 1×
@chakra-ui/react2.5.5 · 1×
@chakra-ui/storybook-addon4.0.16 · 1×
@dnd-kit/core6.0.8 · 1×
@dnd-kit/modifiers6.0.1 · 1×
@dnd-kit/sortable7.0.2 · 1×
@dnd-kit/utilities3.2.1 · 1×
@docusaurus/core2.4.0 · 1×
@docusaurus/module-type-aliases2.4.0 · 1×
@docusaurus/preset-classic2.4.0 · 1×
@docusaurus/theme-mermaid2.4.0 · 1×
@emotion/react11.10.6 · 1×

Datastores touched

oasst_webDatabase · 1 repos
postgresDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add Open-Assistant \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact