{"id":23330374,"url":"https://github.com/marinac-dev/qdrant","last_synced_at":"2025-08-23T00:31:03.031Z","repository":{"id":147937995,"uuid":"618803283","full_name":"marinac-dev/qdrant","owner":"marinac-dev","description":"Elixir client for Qdrant vector search engine","archived":false,"fork":false,"pushed_at":"2023-05-19T14:22:20.000Z","size":70,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-14T22:50:22.941Z","etag":null,"topics":["elixir","elixir-client","qdrant","vector-database","vector-search-engine"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/marinac-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-03-25T11:58:04.000Z","updated_at":"2024-04-17T00:37:41.635Z","dependencies_parsed_at":"2023-09-03T07:31:29.126Z","dependency_job_id":null,"html_url":"https://github.com/marinac-dev/qdrant","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marinac-dev%2Fqdrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marinac-dev%2Fqdrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marinac-dev%2Fqdrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marinac-dev%2Fqdrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marinac-dev","download_url":"https://codeload.github.com/marinac-dev/qdrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230501052,"owners_count":18236054,"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":["elixir","elixir-client","qdrant","vector-database","vector-search-engine"],"created_at":"2024-12-20T22:16:47.762Z","updated_at":"2024-12-20T22:16:48.417Z","avatar_url":"https://github.com/marinac-dev.png","language":"Elixir","readme":"# Qdrant Elixir Client\n\n## ⚠️ This library is under active development and is subject to change. Please use the latest version from GitHub ⚠️\n\nAn Elixir client for the Qdrant vector similarity search engine. This library provides a convenient way to interact with the Qdrant API, offering functionality to create collections, insert vectors, search, delete data, and more.\n\n[![Hex.pm](https://img.shields.io/hexpm/v/qdrant.svg)](https://hex.pm/packages/qdrant) [![Hex.pm](https://img.shields.io/hexpm/dt/qdrant.svg)](https://hex.pm/packages/qdrant) [![Hex.pm](https://img.shields.io/hexpm/l/qdrant.svg)](https://hex.pm/packages/qdrant)\n\n## Installation\n\nIt's [available in Hex](https://hexdocs.pm/qdrant/readme.html), the package can be installed\nby adding `qdrant` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:qdrant, \"~\u003e 0.8.0\"}\n    # Or use the latest version from GitHub | Recommended during development phase\n    {:qdrant, git: \"git@github.com:marinac-dev/qdrant.git\"},\n  ]\nend\n```\n\n## Config\n\n```elixir\nconfig :qdrant,\n  port: 6333,\n  interface: \"rest\", # gRPC not yet supported\n  database_url: System.get_env(\"QDRANT_DATABASE_URL\"),\n  # If you are using cloud version of Qdrant, add API key\n  api_key: System.get_env(\"QDRANT_API_KEY\")\n```\n\n## Usage\n\nThe Qdrant Elixir Client provides a simple interface for interacting with the Qdrant API. For example, you can create a new collection, insert vectors, search, and delete data using the provided functions.\n\n```elixir\ncollection_name = \"my-collection\"\n\n# Create a new collection\n# The vectors are 1536-dimensional (because of OpenAi embedding) and use the Cosine distance metric\nQdrant.create_collection(collection_name, %{vectors: %{size: 1536, distance: \"Cosine\"}})\n\n# Create embeddings for some text\nvector1 = OpenAi.embed_text(\"Hello world\")\nvector2 = OpenAi.embed_text(\"This is OpenAI\")\n\n# Now we can insert the vectors with batch\nQdrant.upsert_points(collection_name, %{batch: %{ids: [1,2], vectors: [vector1, vector2]}})\n# Or one by one\nQdrant.upsert_point(collection_name, %{points: [%{id: 1, vector: vector1}, %{id: 2, vector: vector2}]})\n\n# Search for similar vectors\nvector3 = OpenAi.embed_text(\"Hello world!\")\nQdrant.search_points(collection_name, %{vector: vector3, limit: 3})\n```\n\n## Contributing\n\n- Fork the repository\n- Create a branch for your changes\n- Make your changes\n- Run `mix format` to format your code\n\n## Change Log\n\nGenerate change log with `git-chglog -o CHANGELOG.md`\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinac-dev%2Fqdrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarinac-dev%2Fqdrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinac-dev%2Fqdrant/lists"}