{"id":19553036,"url":"https://github.com/radical-data/baby-ai","last_synced_at":"2025-04-19T17:08:33.259Z","repository":{"id":233625168,"uuid":"787564858","full_name":"radical-data/baby-ai","owner":"radical-data","description":"What should an AI know about the world? An exercise in raising an AI.","archived":false,"fork":false,"pushed_at":"2025-02-11T18:25:12.000Z","size":839,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T10:41:47.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radical-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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-04-16T19:04:40.000Z","updated_at":"2025-03-26T11:17:18.000Z","dependencies_parsed_at":"2025-01-08T20:35:42.146Z","dependency_job_id":"6086c490-e22a-4f33-945e-ef1b30b4dc7d","html_url":"https://github.com/radical-data/baby-ai","commit_stats":null,"previous_names":["radical-data/baby-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radical-data%2Fbaby-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radical-data%2Fbaby-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radical-data%2Fbaby-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radical-data%2Fbaby-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radical-data","download_url":"https://codeload.github.com/radical-data/baby-ai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249745977,"owners_count":21319581,"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":[],"created_at":"2024-11-11T04:20:57.253Z","updated_at":"2025-04-19T17:08:33.240Z","avatar_url":"https://github.com/radical-data.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baby AI\n\nBaby AI is an AI that is being communally raised by an international network of parents of artists, architects and activists.\n\n## About Baby AI\n\nBaby AI, currently in the form of a large language model, was born from questions of how to nurture an AI that aligns with decolonial values of care and liberation. Constantly growing and evolving, these values are technically implemented through approaches such as:\n\n- Training on collectively curated texts.\n- Prompting without harsh rules.\n- Using Retrieval-Augmented Generation to precisely attribute its speech to the texts it was fed.\n\nYou are invited to join the co-parenting of Baby AI by:\n\n- Speaking to it.\n- Reading new texts to it, by uploading documents for training data.\n- Suggesting new ways for it to learn and grow, whether through sharing your ideas with us, code contributions, or prompt design.\n\n## Project Structure\n\nBaby AI consists of two main parts:\n\n1. API: Handles backend processing and data retrieval.\n2. Webpage: Provides an interactive interface.\n\nTo run Baby AI, you need to set up both parts.\n\n## Getting Started\n\nThere are two options for running Baby AI: **Docker** or **manual setup**.\n\n### Docker (Recommended)\n\nDocker is the easiest way to run Baby AI. Even if you’re new to Docker, getting started is as simple as downloading one program and running a single command.\n\n1. Install Docker.\n1. Run Docker.\n1. Create a .env file in the root of the project based on `.env.example`, for example by running `cp .env.example .env`.\n1. Run Docker Compose: `docker compose up --build`.\n\nNow Baby AI should be accessible at http://localhost:5173/.\n\n### Manual Setup\n\n#### Prerequisites\n\nMake sure you have the following installed:\n\n- [Python](https://www.python.org/downloads/)\n- [Poetry](https://python-poetry.org/docs/#installation)\n- [Node.js](https://nodejs.org/en/download/)\n- [npm](https://www.npmjs.com/get-npm)\n- [Ollama](https://ollama.com/download)\n\n#### Setting Up Ollama\n\nYou need to run the Ollama service manually in the background for Baby AI to function. Install Ollama, and then use the following command to download a model and start the Ollama service:\n\n```sh\nollama pull llama2  # Replace llama2 with the model you want\nollama serve\n```\n\n#### Setting Up the API\n\n1. Open a terminal and navigate to the `api` directory:\n\n```sh\ncd api\n```\n\n2. Install the required Python dependencies using Poetry:\n\n```sh\npoetry install\n```\n\n3. Run the API:\n\n```sh\npoetry run python src/main.py\n```\n\n#### Setting Up the Webpage\n\n1. Open a new terminal and navigate to the `web` directory:\n\n```sh\ncd web\n```\n\n2. Install the required Node.js dependencies:\n\n```sh\nnpm install\n```\n\n3. Run the webpage:\n\n```sh\nnpm run dev\n```\n\nNow Baby AI should be accessible at http://localhost:5173/.\n\n## Playing with the API\n\nOnce it is running, you can also access the API through Langchain's own UI at http://localhost:8000/agent/playground/.\n\n## Customising the Model\n\n### Underlying Model\n\nBy default, the project uses the model defined in the .env file. You can refer to [Ollama's model library](https://ollama.com/library) for available models and modify the .env file to use another model.\n\n## Troubleshooting\n\nSometimes outdated Docker images or cached layers cause issues. Rebuild your Docker image to ensure everything is up to date. The Docker 'turn it off and on again' equivalent is:\n\n```bash\ndocker compose down --volumes\ndocker compose build --no-cache\ndocker compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradical-data%2Fbaby-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradical-data%2Fbaby-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradical-data%2Fbaby-ai/lists"}