Merge branch 'main' into jan-89
This commit is contained in:
commit
d1fcd648f4
@ -1,7 +1,7 @@
|
||||
# Jan - Self-Hosted AI Platform
|
||||
|
||||
<p align="center">
|
||||
<img alt="posthoglogo" src="https://user-images.githubusercontent.com/69952136/266827788-b37d6f41-fc34-4677-aa1f-3e2ca6d3c91a.png">
|
||||
<img alt="janlogo" src="https://user-images.githubusercontent.com/69952136/266827788-b37d6f41-fc34-4677-aa1f-3e2ca6d3c91a.png">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@ -32,6 +32,10 @@ Jan is free, source-available, and [fair-code](https://faircode.io/) licensed.
|
||||
|
||||
👋 https://cloud.jan.ai
|
||||
|
||||
<p align="center">
|
||||
<img src="https://github.com/janhq/jan/assets/69952136/1f9bb48c-2e70-4633-9f68-7881cd925972" alt="Jan Web GIF">
|
||||
</p>
|
||||
|
||||
## Features
|
||||
|
||||
**Multiple AI Engines**
|
||||
|
||||
@ -0,0 +1 @@
|
||||
-- DO NOTHING WITH DATA MIGRATION DOWN
|
||||
@ -1,4 +1,3 @@
|
||||
SET check_function_bodies = false;
|
||||
INSERT INTO public.products ("slug", "name", "nsfw", "image_url", "description", "long_description", "technical_description", "author", "version", "source_url", "inputs", "outputs", "greeting") VALUES
|
||||
('llama2', 'Llama-2-7B-Chat', 't', 'https://static-assets.jan.ai/llama2.jpg','Llama 2 is Meta`s open source large language model (LLM)', 'Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 7B pretrained model. Links to other models can be found in the index at the bottom.', 'Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM.', 'Meta', 'Llama2-7B-GGML', 'https://huggingface.co/TheBloke/airoboros-13B-gpt4-1.4-GGML', '{"body": [{"name": "messages", "type": "array", "items": [{"type": "object", "properties": [{"name": "role", "type": "string", "example": "system", "description": "Defines the role of the message."}, {"name": "content", "type": "string", "example": "Hello, world!", "description": "Contains the content of the message."}]}], "description": "An array of messages, each containing a role and content. The latest message is always at the end of the array."}, {"name": "stream", "type": "boolean", "example": true, "description": "Indicates whether the client wants to keep the connection open for streaming."}, {"name": "max_tokens", "type": "integer", "example": 500, "description": "Defines the maximum number of tokens that the client wants to receive."}], "slug": "llm", "headers": {"accept": "text/event-stream", "content-type": "application/json"}}', '{"slug": "llm", "type": "object", "properties": [{"name": "id", "type": "string", "example": "chatcmpl-4c4e5eb5-bf53-4dbc-9136-1cf69fc5fd7c", "description": "The unique identifier of the chat completion chunk."}, {"name": "model", "type": "string", "example": "gpt-3.5-turbo", "description": "The name of the GPT model used to generate the completion."}, {"name": "created", "type": "integer", "example": 1692169988, "description": "The Unix timestamp representing the time when the completion was generated."}, {"name": "object", "type": "string", "example": "chat.completion.chunk", "description": "A string indicating the type of the chat completion chunk."}, {"name": "choices", "type": "array", "items": [{"type": "object", "properties": [{"name": "index", "type": "integer", "example": 0, "description": "The index of the choice made by the GPT model."}, {"name": "delta", "type": "object", "properties": [{"name": "content", "type": "string", "example": "What", "description": "The content generated by the GPT model."}], "description": "A JSON object containing the content generated by the GPT model."}, {"name": "finish_reason", "type": "string", "example": null, "description": "A string indicating why the GPT model stopped generating content."}]}], "description": "An array containing the choices made by the GPT model to generate the completion."}], "description": "A JSON object representing a chat completion chunk."}', '👋I’m a versatile AI trained on a wide range of topics, here to answer your questions about the universe. What are you curious about today?')
|
||||
ON CONFLICT (slug) DO NOTHING;
|
||||
@ -0,0 +1 @@
|
||||
-- DO NOTHING WITH DATA MIGRATION DOWN
|
||||
@ -0,0 +1,3 @@
|
||||
INSERT INTO public.collections ("slug", "name", "description") VALUES
|
||||
('conversational', 'Conversational', 'Converse with these models and get answers.')
|
||||
ON CONFLICT (slug) DO NOTHING;
|
||||
@ -0,0 +1 @@
|
||||
-- DO NOTHING WITH DATA MIGRATION DOWN
|
||||
@ -1,6 +1,4 @@
|
||||
SET check_function_bodies = false;
|
||||
|
||||
INSERT INTO public.collection_products (collection_id, product_id)
|
||||
SELECT (SELECT id FROM public.collections WHERE slug = 'conversational') AS collection_id, id AS product_id
|
||||
FROM public.products
|
||||
WHERE slug IN ('llama2') ON CONFLICT (collection_id, product_id) DO NOTHING;;
|
||||
WHERE slug IN ('llama2') ON CONFLICT (collection_id, product_id) DO NOTHING;
|
||||
@ -0,0 +1 @@
|
||||
-- DO NOTHING WITH DATA MIGRATION DOWN
|
||||
@ -1,4 +1,3 @@
|
||||
SET check_function_bodies = false;
|
||||
INSERT INTO public.prompts ("slug", "content", "image_url") VALUES
|
||||
('conversational-ai-future', 'What are possible developments for AI technology in the next decade?', ''),
|
||||
('conversational-managing-stress', 'What are some tips for managing stress?', ''),
|
||||
@ -0,0 +1 @@
|
||||
-- DO NOTHING WITH DATA MIGRATION DOWN
|
||||
@ -1,5 +1,3 @@
|
||||
SET check_function_bodies = false;
|
||||
|
||||
INSERT INTO public.product_prompts (product_id, prompt_id)
|
||||
SELECT p.id AS product_id, r.id AS prompt_id
|
||||
FROM public.products p
|
||||
@ -8,4 +6,4 @@ ON (p.id
|
||||
IN (SELECT x.id FROM public.products x INNER JOIN public.collection_products y ON x.id = y.product_id
|
||||
INNER JOIN public.collections z ON y.collection_id = z.id
|
||||
WHERE z.slug = 'conversational'))
|
||||
WHERE r.image_url IS NULL OR r.image_url = '' ON CONFLICT (product_id, prompt_id) DO NOTHING;
|
||||
WHERE r.image_url IS NULL OR r.image_url = '' ON CONFLICT (product_id, prompt_id) DO NOTHING;
|
||||
@ -1,4 +0,0 @@
|
||||
SET check_function_bodies = false;
|
||||
INSERT INTO public.collections ("slug", "name", "description") VALUES
|
||||
('conversational', 'Conversational', 'Chatbot alternatives to ChatGPT. Converse with these models and get answers.')
|
||||
ON CONFLICT (slug) DO NOTHING;
|
||||
@ -68,23 +68,6 @@ services:
|
||||
jan_community:
|
||||
ipv4_address: 172.20.0.12
|
||||
|
||||
hasura-seed-apply:
|
||||
image: hasura/graphql-engine:v2.31.0.cli-migrations-v3
|
||||
entrypoint: [""]
|
||||
command: ["/bin/sh", "-c", "hasura-cli seed apply --all-databases"]
|
||||
env_file:
|
||||
- conf/sample.env_app-backend
|
||||
volumes:
|
||||
- ./app-backend/hasura/config.yaml:/config.yaml
|
||||
- ./app-backend/hasura/seeds:/seeds
|
||||
depends_on:
|
||||
graphql-engine:
|
||||
condition: service_healthy
|
||||
extra_hosts:
|
||||
- "localhost:172.20.0.12"
|
||||
networks:
|
||||
jan_community:
|
||||
|
||||
worker:
|
||||
build:
|
||||
context: ./app-backend/worker
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user