{"id":28996777,"url":"https://github.com/hunkim/solar-vector-store","last_synced_at":"2025-06-25T05:11:30.623Z","repository":{"id":293952532,"uuid":"985595985","full_name":"hunkim/solar-vector-store","owner":"hunkim","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-18T05:34:04.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T06:27:33.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/hunkim.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}},"created_at":"2025-05-18T05:29:37.000Z","updated_at":"2025-05-18T05:34:07.000Z","dependencies_parsed_at":"2025-05-18T06:37:38.867Z","dependency_job_id":null,"html_url":"https://github.com/hunkim/solar-vector-store","commit_stats":null,"previous_names":["hunkim/solar-vector-store"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hunkim/solar-vector-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fsolar-vector-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fsolar-vector-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fsolar-vector-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fsolar-vector-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunkim","download_url":"https://codeload.github.com/hunkim/solar-vector-store/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2Fsolar-vector-store/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261808072,"owners_count":23212694,"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":"2025-06-25T05:11:30.041Z","updated_at":"2025-06-25T05:11:30.600Z","avatar_url":"https://github.com/hunkim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solar Vector Store\n\nA FastAPI server that implements an OpenAI‐style Vector Stores API using:\n\n1. **Upstage Document Digitization** to parse PDFs (or other files) into text  \n2. **Upstage Solar Embeddings** to turn text into vectors  \n3. **Qdrant** (cloud or local) to store and search the vectors  \n\n---\n\n## Features\n\n- **Vector Store Management**  \n  Create, list, retrieve, update (distance metric), and delete named stores (Qdrant collections)\n\n- **File Ingestion**  \n  Upload a PDF (or other file), parse it into pages via Upstage, embed each page, and upsert into Qdrant\n\n- **Search**  \n  Embed a text query and perform a **k-NN** search over the stored vectors\n\n- **File \u0026 Store Cleanup**  \n  Delete individual ingested files or entire vector stores\n\n---\n\n## Prerequisites\n\n- **Python 3.10+**  \n- **Upstage API Key** (for Document Digitization \u0026 Embeddings)  \n- **Qdrant** (cloud or self-hosted) URL \u0026 API Key (if you use Qdrant Cloud)\n\n---\n\n## Getting Started\n\n1. **Clone the repo**  \n   ```bash\n   git clone https://github.com/your-org/solar-vector-store.git\n   cd solar-vector-store\n   ```\n\n2. **Create \u0026 activate virtual environment**  \n   ```bash\n   make venv\n   source .venv/bin/activate\n   ```\n\n3. **Install dependencies**  \n   ```bash\n   make install\n   ```\n\n4. **Configure environment**  \n   Copy `.env.example` → `.env`, then set:\n   ```\n   UPSTAGE_API_KEY=up_...\n   QDRANT_URL=https://\u003cyour-qdrant-cloud\u003e\n   QDRANT_API_KEY=\u003cyour-qdrant-key\u003e    # optional for self-hosted\n   ```\n\n5. **Run the server**  \n   ```bash\n   make run\n   ```\n   The API will be available at `http://localhost:8000` and interactive docs at `http://localhost:8000/docs`.\n\n---\n\n## API Endpoints\n\n| Method | Path                                        | Description                                 |\n| ------ | ------------------------------------------- | ------------------------------------------- |\n| POST   | `/vector_stores`                            | Create a new vector store                   |\n| GET    | `/vector_stores`                            | List all vector stores                      |\n| GET    | `/vector_stores/{store_id}`                 | Retrieve one vector store’s metadata        |\n| PATCH  | `/vector_stores/{store_id}`                 | Update name or distance metric              |\n| DELETE | `/vector_stores/{store_id}`                 | Delete a vector store                       |\n| POST   | `/vector_stores/{store_id}/files`           | Upload \u0026 ingest a file                      |\n| GET    | `/vector_stores/{store_id}/files`           | List ingested files                         |\n| GET    | `/vector_stores/{store_id}/files/{file_id}` | Retrieve file metadata                      |\n| DELETE | `/vector_stores/{store_id}/files/{file_id}` | Delete an ingested file’s vectors \u0026 metadata|\n| POST   | `/vector_stores/{store_id}/query`           | Query the store with a text embedding       |\n\n---\n\n## Testing\n\n1. Place a sample `test.pdf` in the `tests/` directory.  \n2. Run the test suite:\n   ```bash\n   make test\n   ```\n\n---\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fsolar-vector-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunkim%2Fsolar-vector-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fsolar-vector-store/lists"}