{"id":14955766,"url":"https://github.com/nosia-ai/nosia","last_synced_at":"2025-04-09T16:05:07.324Z","repository":{"id":246639406,"uuid":"813234559","full_name":"nosia-ai/nosia","owner":"nosia-ai","description":"Nosia is a platform that allows you to run an AI model on your own data. It is designed to be easy to install and use.","archived":false,"fork":false,"pushed_at":"2025-04-08T19:49:31.000Z","size":241,"stargazers_count":86,"open_issues_count":15,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-09T16:05:00.926Z","etag":null,"topics":["ai","all-in-one","docker","llm","ollama","rag","ruby","ruby-on-rails","shell"],"latest_commit_sha":null,"homepage":"https://guides.nosia.ai","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nosia-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-10T18:22:19.000Z","updated_at":"2025-04-03T19:12:15.000Z","dependencies_parsed_at":"2025-02-25T06:10:33.272Z","dependency_job_id":"3c1b17e8-1ac5-4eae-b310-35425750c041","html_url":"https://github.com/nosia-ai/nosia","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":"0.033333333333333326","last_synced_commit":"2eb6dfd4882e0e5fd8c7ea8712b969492b90c53f"},"previous_names":["nosia-ai/nosia"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosia-ai%2Fnosia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosia-ai%2Fnosia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosia-ai%2Fnosia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosia-ai%2Fnosia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nosia-ai","download_url":"https://codeload.github.com/nosia-ai/nosia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065289,"owners_count":21041871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","all-in-one","docker","llm","ollama","rag","ruby","ruby-on-rails","shell"],"created_at":"2024-09-24T13:11:41.756Z","updated_at":"2025-04-09T16:05:07.305Z","avatar_url":"https://github.com/nosia-ai.png","language":"Ruby","funding_links":[],"categories":["Web \u0026 Desktop UIs","Ruby"],"sub_categories":[],"readme":"# Nosia\n\nNosia is a platform that allows you to run an AI model on your own data.\nIt is designed to be easy to install and use.\n\nYou can follow this README or go to the [Nosia Guides](https://guides.nosia.ai/).\n\n- [Quickstart](#quickstart)\n- [API](#api)\n- [Upgrade](#upgrade)\n- [Start](#start)\n- [Stop](#stop)\n- [Troubleshooting](#troubleshooting)\n\n## Easy to use\n\n\u003chttps://github.com/nosia-ai/nosia/assets/1692273/ce60094b-abb5-4ed4-93aa-f69485e058b0\u003e\n\n![nosia-home](https://github.com/user-attachments/assets/dac211a3-6bc3-4f1c-9b1e-fbde9d81e862)\n\n![nosia-documents](https://github.com/user-attachments/assets/bb71f748-4525-432b-8e11-f46fdc7461c4)\n\n![nosia-chat](https://github.com/user-attachments/assets/a23517ab-7910-4ccc-9312-c0de8310ac86)\n\n![nosia-document](https://github.com/user-attachments/assets/dc147f03-8832-4bb3-b87c-9f77a7eda2b3)\n\n## Easy to install\n\n\u003chttps://github.com/nosia-ai/nosia/assets/1692273/671ccb6a-054c-4dc2-bcd9-2b874a888548\u003e\n\n## Quickstart\n\n### One command installation\n\n#### On a macOS, Debian or Ubuntu machine\n\nIt will install Docker, Ollama, and Nosia on a macOS, Debian or Ubuntu machine.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/nosia-ai/nosia-install/main/nosia-install.sh | sh\n```\n\nYou should see the following output:\n\n```\n[x] Setting up environment\n[x] Setting up Docker\n[x] Setting up Ollama\n[x] Starting Ollama\n[x] Starting Nosia\n```\n\nYou can now access Nosia at `https://nosia.localhost`\n\n### Custom installation\n\n#### With a remote Ollama\n\nBy default, Nosia sets up `ollama` locally.\n\nTo use a remote Ollama instance, set the `OLLAMA_BASE_URL` environment variable during configuration.\n\n**Example:**\n\nReplace `$OLLAMA_HOST_IP` with the FQDN or IP address of your Ollama host and run:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/nosia-ai/nosia-install/main/nosia-install.sh \\\n  | OLLAMA_BASE_URL=http://$OLLAMA_HOST_IP:11434 sh\n```\n\n#### With a custom completion model\n\nBy default, Nosia uses:\n\n1. Completion model: `qwen2.5`\n1. Embeddings model: `nomic-embed-text`\n1. Checking model: `bespoke-minicheck`\n\nYou can use any completion model available on Ollama by setting the `LLM_MODEL` environment variable during the installation.\n\n**Example:**\n\nTo use the `mistral` model, run:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/nosia-ai/nosia-install/main/nosia-install.sh \\\n  | LLM_MODEL=mistral sh\n```\n\n#### With a custom embeddings model\n\nAt this time, the `nomic-embed-text` embeddings model is required for Nosia to work.\n\nIf you use new dimensions by using a new embeddings model, you'll need to:\n\n1. Change the `EMBEDDING_DIMENSIONS` environment variable.\n\n2. Re-execute the change vector limit database migration:\n\n```bash\nbin/rails db:migrate:redo:primary VERSION=20241216213448\n```\n\n3. Re-vectorize your chunks (this could take a while):\n\n```bash\nbin/rails c\n```\n\n```ruby\nDocument.find_each(\u0026:vectorize!)\n```\n\n### Advanced installation\n\n### On a macOS with a Debian or Ubuntu VM\n\nOn macOS, install Homebrew:\n\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\nThen install Ollama with Homebrew:\n\nReplace `$OLLAMA_HOST_IP` with the IP address of the Ollama host machine and run the following command:\n\n```bash\nbrew install ollama\nollama pull qwen2.5\nollama pull bespoke-minicheck\nollama pull nomic-embed-text\nOLLAMA_BASE_URL=$OLLAMA_HOST_IP:11434 OLLAMA_MAX_LOADED_MODELS=3 ollama serve\n```\n\nOn the Debian/Ubuntu VM:\n\nReplace `$OLLAMA_HOST_IP` with the IP address of the host machine and run the following command:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/nosia-ai/nosia-install/main/nosia-install.sh \\\n  | OLLAMA_BASE_URL=http://$OLLAMA_HOST_IP:11434 sh\n```\n\nYou should see the following output:\n\n```\n[x] Setting up environment\n[x] Setting up Docker\n[x] Setting up Ollama\n[x] Starting Ollama\n[x] Starting Nosia\n```\n\nFrom the VM, you can access Nosia at `https://nosia.localhost`\n\nIf you want to access Nosia from the host machine, you may need to forward the port from the VM to the host machine.\n\nReplace `$USER` with the username of the VM, `$VM_IP` with the IP address of the VM, and `$LOCAL_PORT` with the port you want to use on the host machine, 8443 for example, and run the following command:\n\n```bash\nssh $USER@$VM_IP -L $LOCAL_PORT:localhost:443\n```\n\nAfter running the command, you can access Nosia at `https://nosia.localhost:$LOCAL_PORT`.\n\n## API\n\n## Get an API token\n\n1. Go as a logged in user to `https://nosia.localhost/api_tokens`\n1. Generate and copy your token\n1. Use your favorite OpenAI chat completion API client by configuring API base to `https://nosia.localhost/v1` and API key with your token.\n\n## Start a chat completion\n\n[Follow the guide](https://guides.nosia.ai/api#start-a-chat-completion)\n\n## Upgrade\n\nYou can upgrade the services with the following command:\n\n```bash\n./script/upgrade\n```\n\n## Start\n\nYou can start the services with the following command:\n\n```bash\n./script/start\n```\n\n## Stop\n\nYou can stop the services with the following command:\n\n```bash\n./script/stop\n```\n\n## Troubleshooting\n\nIf you encounter any issue:\n\n- during the installation, you can check the logs at `./log/production.log`\n- during the use waiting for an AI response, you can check the jobs at `http://\u003cIP\u003e:3000/jobs`\n- with Nosia, you can check the logs with `docker compose -f ./docker-compose.yml logs -f`\n- with the Ollama server, you can check the logs at `~/.ollama/logs/server.log`\n\nIf you need further assistance, please open an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnosia-ai%2Fnosia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnosia-ai%2Fnosia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnosia-ai%2Fnosia/lists"}