{"id":50566402,"url":"https://github.com/neuron-core/php-vector","last_synced_at":"2026-06-04T15:01:47.589Z","repository":{"id":348442573,"uuid":"1198107460","full_name":"neuron-core/php-vector","owner":"neuron-core","description":"Adapter for PHPVector database for Neuron AI framework","archived":false,"fork":false,"pushed_at":"2026-06-04T13:04:21.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-04T14:10:11.366Z","etag":null,"topics":["php","rag","retrieval","retrieval-augmented-generation","similarity-search","vector-database"],"latest_commit_sha":null,"homepage":"https://docs.neuron-ai.dev","language":"PHP","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/neuron-core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T06:02:43.000Z","updated_at":"2026-06-04T13:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/neuron-core/php-vector","commit_stats":null,"previous_names":["neuron-core/php-vector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neuron-core/php-vector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuron-core%2Fphp-vector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuron-core%2Fphp-vector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuron-core%2Fphp-vector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuron-core%2Fphp-vector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neuron-core","download_url":"https://codeload.github.com/neuron-core/php-vector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuron-core%2Fphp-vector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33910137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":["php","rag","retrieval","retrieval-augmented-generation","similarity-search","vector-database"],"created_at":"2026-06-04T15:01:47.323Z","updated_at":"2026-06-04T15:01:47.569Z","avatar_url":"https://github.com/neuron-core.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neuron AI Adapter for php-vector\n\nPHPVector adapter for the [Neuron AI](https://neuron-ai.dev) framework. Implements\n`NeuronAI\\RAG\\VectorStore\\VectorStoreInterface` on top of `ezimuel/phpvector`.\n\n## Dependencies\n\n- PHP ^8.2\n- [ezimuel/phpvector](https://github.com/ezimuel/PHPVector) ^0.3.0\n- [Neuron AI](https://github.com/neuron-core/neuron-ai) ^3.0\n\n## Installation\n\n```bash\ncomposer require neuron-core/php-vector\n```\n\n## Usage\n\nInside a Neuron RAG class:\n\n```php\nclass MyRAG extends RAG\n{\n    ...\n\n    protected function vectorStore(): VectorStoreInterface\n    {\n        return new PHPVector(\n            path: '/var/data/mydb',\n            topK: 5,\n        );\n    }\n}\n```\n\nUse it as a standalone component:\n\n```php\nuse NeuronAI\\PHPVector\\PHPVector;\nuse PHPVector\\VectorDatabase;\n\n// Persistent database: pass a path to enable on-disk storage.\n$store = new PHPVector(\n    path: '/var/data/mydb',\n    topK: 5,\n);\n```\n\n## Persistence\n\nBy default, this adapter auto-saves after every mutation (`addDocument`, `addDocuments`,\n`deleteBy`), batched to a single `save()` per call, so persistence \"just works\".\n\n## Deletion\n\n`deleteBy()` removes documents by Neuron's `sourceType` / `sourceName`, which this adapter\nstores as PHPVector metadata:\n\n```php\n$store-\u003edeleteBy('pdf');               // all documents from sourceType \"pdf\"\n$store-\u003edeleteBy('pdf', 'manual.pdf'); // only that exact source\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuron-core%2Fphp-vector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneuron-core%2Fphp-vector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuron-core%2Fphp-vector/lists"}