{"id":20777885,"url":"https://github.com/bejamas/astro-chromadb-search","last_synced_at":"2026-03-09T20:30:54.730Z","repository":{"id":215561232,"uuid":"736404880","full_name":"bejamas/astro-chromadb-search","owner":"bejamas","description":"You can read the article on Bejamas website: https://bejamas.com/hub/guides/ai-powered-semantic-search-chroma-db-and-astro","archived":false,"fork":false,"pushed_at":"2024-01-22T06:20:17.000Z","size":530,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-30T18:42:29.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"MDX","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/bejamas.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}},"created_at":"2023-12-27T20:14:38.000Z","updated_at":"2024-12-30T14:26:25.000Z","dependencies_parsed_at":"2024-01-17T06:49:25.931Z","dependency_job_id":null,"html_url":"https://github.com/bejamas/astro-chromadb-search","commit_stats":null,"previous_names":["bejamas/astro-chromadb-search"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bejamas/astro-chromadb-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bejamas%2Fastro-chromadb-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bejamas%2Fastro-chromadb-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bejamas%2Fastro-chromadb-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bejamas%2Fastro-chromadb-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bejamas","download_url":"https://codeload.github.com/bejamas/astro-chromadb-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bejamas%2Fastro-chromadb-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30310731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-17T13:17:54.126Z","updated_at":"2026-03-09T20:30:54.692Z","avatar_url":"https://github.com/bejamas.png","language":"MDX","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Astro ChromaDB Search 🚀\n\nAstro ChromaDB Search is a showcase project that demonstrates the integration of ChromaDB, a vector database, with the Astro framework. The goal of this project is to create an efficient and cost-effective indexing system for embeddings, showcasing the power of combining these technologies.\n\n### Project Overview\n\nThe project aims to perform semantic search over markdown files using the Astro framework and ChromaDB. By storing documents as vectors in a high-dimensional space, it enables semantic searches to return documents with similar meanings to the input query. This setup utilizes OpenAI embeddings and supports various embeddings from Hugging Face.\n\n### Folder Structure\n\n```\n- src\n  - components\n    - search.ts\n  - content\n  - layout\n    - main-layout.astro\n  - pages\n    - api/search.ts\n    - posts/[...slug].astro\n- index-builder.js\n```\n\n### Prerequisites\n\nMake sure you have the following prerequisites installed:\n\n*   Astro 🚀\n*   Tailwind 🌊\n*   React ⚛️\n*   [ChromaDB](https://www.trychroma.com/) for vector search\n*   `pip` or Docker for [installing ChromaDB](https://docs.trychroma.com/getting-started#1-install)\n\n### Running the Application\n\nTo run the application, follow these steps:\n\n1.  Install dependencies: Run `yarn` to install the required dependencies.\n2.  Install ChromaDB: Install ChromaDB by running `pip install chromadb` or via Docker Compose from the [official ChromaDB repository](https://github.com/arenah/chromadb).\n3.  Start ChromaDB: Run `yarn start:chroma` to start ChromaDB by running `chroma run --path ./chromadb` (adjust the `./chromadb` path to your desired location).\n4.  Create embeddings: Run `node src/index-builder.js` to process MDX files in the `content` folder and create the necessary embeddings.\n5.  Perform searches: Use the UI or the `/api/search?query={phrase}` endpoint to perform searches based on the provided query.\n\n### UI Showcase\n\nPlaceholder for GIF images showcasing the UI (Please insert GIF images here).\n\n### Code Quality\n\nThe project demonstrates good code quality and follows best practices. Contributions are always welcome! Feel free to fork the repository and submit pull requests with your improvements.\n\n### Additional Resources\n\nHere are some additional resources for learning more about Astro and ChromaDB:\n\n*   [ChromaDB Documentation](https://docs.trychroma.com/getting-started)\n*   [Astro Documentation](https://docs.astro.build/en/getting-started/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbejamas%2Fastro-chromadb-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbejamas%2Fastro-chromadb-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbejamas%2Fastro-chromadb-search/lists"}