{"id":40958030,"url":"https://github.com/sqliteai/sqlite-aisearch-action","last_synced_at":"2026-01-22T05:39:34.023Z","repository":{"id":316759842,"uuid":"1049301544","full_name":"sqliteai/sqlite-aisearch-action","owner":"sqliteai","description":"Automatically processes your documentation files and creates an SQLite AI-powered searchable database on SQLite Cloud","archived":false,"fork":false,"pushed_at":"2025-10-08T08:51:24.000Z","size":345,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T10:25:33.654Z","etag":null,"topics":["ai","sqlite"],"latest_commit_sha":null,"homepage":"https://sqlite.ai","language":"JavaScript","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/sqliteai.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-02T19:20:11.000Z","updated_at":"2025-10-08T08:47:53.000Z","dependencies_parsed_at":"2025-09-26T15:29:09.531Z","dependency_job_id":null,"html_url":"https://github.com/sqliteai/sqlite-aisearch-action","commit_stats":null,"previous_names":["sqliteai/sqlite-aisearch-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sqliteai/sqlite-aisearch-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqliteai%2Fsqlite-aisearch-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqliteai%2Fsqlite-aisearch-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqliteai%2Fsqlite-aisearch-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqliteai%2Fsqlite-aisearch-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqliteai","download_url":"https://codeload.github.com/sqliteai/sqlite-aisearch-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqliteai%2Fsqlite-aisearch-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28656439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","sqlite"],"created_at":"2026-01-22T05:39:33.967Z","updated_at":"2026-01-22T05:39:34.013Z","avatar_url":"https://github.com/sqliteai.png","language":"JavaScript","readme":"[\u003cimg src=\"https://github.com/user-attachments/assets/0d406c41-ff61-41d7-a8de-249e9e652946\" alt=\"https://sqlite.ai\" width=\"110\"/\u003e](https://sqlite.ai)\n\n# SQLite AI Search Action\n    \nIndex your documentation files with SQLite AI-powered embeddings for intelligent search capabilities.\n\n[![Test](https://github.com/sqliteai/sqlite-aisearch-action/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/sqliteai/sqlite-aisearch-action/actions/workflows/test.yaml)\n[![GitHub Release](https://img.shields.io/github/v/release/sqliteai/sqlite-aisearch-action?label=Version)](https://github.com/sqliteai/sqlite-aisearch-action/releases/latest)\n\n## Overview\n\nThe SQLite AI Search Action automatically processes your documentation files and creates an AI-powered searchable database on SQLite Cloud. This action uses both embeddings to understand document content semantically and traditional full-text search, enabling more intelligent and contextual search results.\n\nThis action uses [sqlite-rag](https://github.com/sqliteai/sqlite-rag).\n\n## How it works\n\n1. **Downloads AI Model**: Retrieves the specified Hugging Face model to generate embeddings for semantic search\n2. **Processes Documents**: Recursively scans and parses all documentation files in your repository  \n3. **Creates Dual Index**: Generates both AI embeddings and traditional full-text search indices for comprehensive search capabilities\n4. **Builds Database**: Creates a SQLite database containing documents, embeddings, and search indices\n5. **Uploads to SQLite Cloud**: Transfers the complete database to your SQLite Cloud project\n6. **Integrates with Edge Function**: Works out-of-the-box with the predefined SQLite Cloud Edge Function template ([aisearch-docs.js](search_edge_function_template/aisearch-docs.js)) for instant search functionality\n\n\u003e **Note**: the SQLite Cloud Search Edge Function supports only the default model. Do not change the model settings if you want to use our search edge function.\n\n## Usage\n\n### Setup your workflow\n\n1. **Get your Connection String**: Ensure you have a project on [SQLite Cloud dashboard](https://dashboard.sqlitecloud.io). If not, sign up to [SQLite AI](https://sqlite.ai) to create one for free.\n\n2. **Set GitHub Secret**: Add your connection string as `SQLITECLOUD_CONNECTION_STRING` in your repository secrets.\n\n3. **Add to Workflow**: Create or update your GitHub workflow:\n\n```yaml\nname: AI Search Index\n\non:\n  push:\n    branches: [main]\n  workflow_dispatch:\n\njobs:\n  build-search:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      \n      - name: Build AI Search Database\n        uses: sqliteai/sqlite-aisearch-action@v1\n        with:\n          connection_string: ${{ secrets.SQLITECLOUD_CONNECTION_STRING }}\n          base_url: https://docs.yoursite.com\n          database_name: aidocs_search.db\n          source_files: ./path/to/documents\n```\n\n### Create the Search Edge Function\n\nTo enable search functionality on your indexed database, you need to create an Edge Function using the provided template:\n\n1. Access your dashboard on https://dashboard.sqlitecloud.io\n2. Enter the same project where the created database has been uploaded\n3. Go to the **Edge Functions** section\n4. Create a new `Javascript Function` and copy and paste the code from [aisearch-docs.js](search_edge_function_template/aisearch-docs.js) in the editor\n5. Deploy and test\n\n#### How to perform a search\n\n1. Go in the **Detail** in the Edge Function panel and copy the **Function URL**\n2. Execute a GET request and send a URL-econded query as `query` parameter. \n    \n    Example: `GET\n\t    https://myproject.cloud/v2/functions/aisearch-docs?query=what%27s+Offsync%3F`\n\nResponse example:\n```json\n{\n  \"data\": {\n    \"search\": [\n      {\n        \"id\": \"c41a6c2e-34e9-4e8e-92b9-41b8065047c7\",\n        \"uri\": \"docs/sqlite-cloud/sdks/php/methods.mdx\",\n        \"metadata\": \"{\\\"base_url\\\": \\\"https://docs.sqlitecloud.io/docs/\\\"}\",\n        \"snippet\": \"---\\ntitle: OffSync\\ndescription: Enable local-first applications with automatic data synchronization between edge devices and SQLite Cloud...\",\n        \"vec_rank\": 1,\n        \"fts_rank\": null,\n        \"combined_rank\": 0.0163934426229508,\n        \"vec_distance\": 0.581515073776245,\n        \"fts_score\": null\n      },\n      ...\n    ]\n  }\n}\n```\n\n## Support\n\n- 📖 [SQLite Cloud Documentation](https://docs.sqlitecloud.io)\n- 💬 [Community Support](https://github.com/orgs/sqlitecloud/discussions)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqliteai%2Fsqlite-aisearch-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqliteai%2Fsqlite-aisearch-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqliteai%2Fsqlite-aisearch-action/lists"}