{"id":14780157,"url":"https://github.com/qdrant/qdrant-genkit","last_synced_at":"2025-09-14T22:31:28.004Z","repository":{"id":243617696,"uuid":"812911336","full_name":"qdrant/qdrant-genkit","owner":"qdrant","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-30T05:27:44.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T10:41:09.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qdrant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-10T06:25:28.000Z","updated_at":"2024-12-30T05:27:11.000Z","dependencies_parsed_at":"2024-06-10T08:42:19.444Z","dependency_job_id":"1265100a-6831-4b5a-90d0-7e80237757c1","html_url":"https://github.com/qdrant/qdrant-genkit","commit_stats":null,"previous_names":["qdrant/qdrant-genkit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fqdrant-genkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fqdrant-genkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fqdrant-genkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdrant%2Fqdrant-genkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qdrant","download_url":"https://codeload.github.com/qdrant/qdrant-genkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233035275,"owners_count":18614984,"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-09-17T01:01:08.708Z","updated_at":"2025-09-14T22:31:27.990Z","avatar_url":"https://github.com/qdrant.png","language":"TypeScript","funding_links":[],"categories":["Plugins","Recently Updated"],"sub_categories":["JavaScript - Community","[Sep 15, 2024](/content/2024/09/15/README.md)"],"readme":"# Qdrant plugin\n\nThe Qdrant plugin provides [Genkit](https://firebase.google.com/docs/genkit) indexer and retriever implementations in JS and Go that use the [Qdrant](https://qdrant.tech/).\n\n## Installation\n\n```bash\nnpm i genkitx-qdrant\n```\n\n## Configuration\n\nTo use this plugin, specify it when you call `configureGenkit()`:\n\n```js\nimport { qdrant } from 'genkitx-qdrant';\n\nconst ai = genkit({\n    plugins: [\n        qdrant([\n            {\n                embedder: googleAI.embedder('text-embedding-004'),\n                collectionName: 'collectionName',\n                clientParams: {\n                    url: 'http://localhost:6333',\n                }\n            }\n        ]),\n    ],\n});\n```\n\nYou'll need to specify a collection name, the embedding model you want to use and the Qdrant client parameters. In\naddition, there are a few optional parameters:\n\n- `embedderOptions`: Additional options to pass options to the embedder:\n\n  ```js\n  embedderOptions: { taskType: 'RETRIEVAL_DOCUMENT' },\n  ```\n\n- `contentPayloadKey`: Name of the payload filed with the document content. Defaults to \"content\".\n\n  ```js\n  contentPayloadKey: 'content';\n  ```\n\n- `metadataPayloadKey`: Name of the payload filed with the document metadata. Defaults to \"metadata\".\n\n  ```js\n  metadataPayloadKey: 'metadata';\n  ```\n\n- `dataTypePayloadKey`: Name of the payload filed with the document datatype. Defaults to \"_content_type\".\n\n  ```js\n  dataTypePayloadKey: '_datatype';\n  ```\n\n- `collectionCreateOptions`: [Additional options](\u003c(https://qdrant.tech/documentation/concepts/collections/#create-a-collection)\u003e) when creating the Qdrant collection.\n\n## Usage\n\nImport retriever and indexer references like so:\n\n```js\nimport { qdrantIndexerRef, qdrantRetrieverRef } from 'genkitx-qdrant';\n```\n\nThen, pass their references to `retrieve()` and `index()`:\n\n```js\n// To export an indexer reference:\nexport const qdrantIndexer = qdrantIndexerRef('collectionName', 'displayName');\n```\n\n```js\n// To export a retriever reference:\nexport const qdrantRetriever = qdrantRetrieverRef('collectionName', 'displayName');\n```\n\nYou can refer to [Retrieval-augmented generation](https://firebase.google.com/docs/genkit/rag) for a general\ndiscussion on indexers and retrievers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdrant%2Fqdrant-genkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqdrant%2Fqdrant-genkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdrant%2Fqdrant-genkit/lists"}