{"id":22065424,"url":"https://github.com/tryagi/pinecone","last_synced_at":"2025-10-24T01:04:27.996Z","repository":{"id":188204304,"uuid":"678247172","full_name":"tryAGI/Pinecone","owner":"tryAGI","description":"Pinecone is a fully-fledged C# library for the Pinecone vector database. It aims to provide identical functionality to the official Python and Rust libraries. This is fork of Pinecone.NET.","archived":false,"fork":false,"pushed_at":"2025-02-24T23:54:54.000Z","size":209,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T01:15:43.190Z","etag":null,"topics":["client","csharp","database","dotnet","embedding","embeddings","langchain-dotnet","net6","net7","pinecone","sdk","vector","vector-database"],"latest_commit_sha":null,"homepage":"https://github.com/neon-sunset/Pinecone.NET","language":"C#","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/tryAGI.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},"funding":{"github":"HavenDV","patreon":"havendv","ko_fi":"havendv","custom":["https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"]}},"created_at":"2023-08-14T05:28:51.000Z","updated_at":"2025-02-26T18:22:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"43ad0c3f-1a7c-4452-84ea-4b68270fb4ca","html_url":"https://github.com/tryAGI/Pinecone","commit_stats":null,"previous_names":["tryagi/pinecone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FPinecone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FPinecone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FPinecone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FPinecone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryAGI","download_url":"https://codeload.github.com/tryAGI/Pinecone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253851075,"owners_count":21973674,"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":["client","csharp","database","dotnet","embedding","embeddings","langchain-dotnet","net6","net7","pinecone","sdk","vector","vector-database"],"created_at":"2024-11-30T19:17:36.621Z","updated_at":"2025-10-24T01:04:22.970Z","avatar_url":"https://github.com/tryAGI.png","language":"C#","funding_links":["https://github.com/sponsors/HavenDV","https://patreon.com/havendv","https://ko-fi.com/havendv","https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"],"categories":[],"sub_categories":[],"readme":"# Pinecone\n\n[![Nuget package](https://img.shields.io/nuget/vpre/tryAGI.Pinecone)](https://www.nuget.org/packages/tryAGI.Pinecone/)\n[![dotnet](https://github.com/tryAGI/Pinecone/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/tryAGI/Pinecone/actions/workflows/dotnet.yml)\n[![License: MIT](https://img.shields.io/github/license/tryAGI/Pinecone)](https://github.com/tryAGI/Pinecone/blob/main/LICENSE.txt)\n[![Discord](https://img.shields.io/discord/1115206893015662663?label=Discord\u0026logo=discord\u0026logoColor=white\u0026color=d82679)](https://discord.gg/Ca2xhfBf3v)\n\nPinecone is a fully-fledged C# library for the Pinecone vector database. \nIt aims to provide identical functionality to the official Python and Rust libraries.  \nThis is a fork of [this project](https://github.com/neon-sunset/Pinecone.NET) with netstandard2.0/net framework support.\n\n## Features\n\n- Standard Index operations\n- gRPC and REST transports for vector operations\n- Sparse-dense vectors\n- Efficient vector serialization\n- Metadata support\n- NativeAOT compatibility\n\n## Usage\nWorking with indexes\n```csharp\nusing Pinecone;\n\n// Initialize the client with your API key and environment\nvar apiKey = \"your-api-key\";\nvar environment = \"your-environment\"; // for example us-east4-gcp\n\nusing var pinecone = new PineconeClient(apiKey, environment);\n\n// List all indexes\nvar indexes = await pinecone.ListIndexes();\n\n// Create a new index if it doesn't exist\nvar indexName = \"myIndex\";\nif (!indexes.Contains(indexName))\n{\n    await pinecone.CreateIndex(indexName, 1536, Metric.Cosine);\n}\n\n// Get an index by name\nusing var index = await pinecone.GetIndex(indexName);\n\n// Configure an index\nawait pinecone.ConfigureIndex(indexName, replicas: 2, podType: \"p2\");\n\n// Delete an index\nawait pinecone.DeleteIndex(indexName);\n```\n\nWorking with vectors\n```csharp\n// Assuming you have an instance of `index`\n// Create and upsert vectors\nvar vectors = new[]\n{\n    new Vector\n    {\n        Id = \"vector1\",\n        Values = new float[] { 0.1f, 0.2f, 0.3f },\n        Metadata = new MetadataMap\n        {\n            [\"genre\"] = \"horror\",\n            [\"duration\"] = 120\n        }\n    }\n};\nawait index.Upsert(vectors);\n\n// Fetch vectors by IDs\nvar fetched = await index.Fetch(new[] { \"vector1\" });\n\n// Query scored vectors by ID\nvar scored = await index.Query(\"vector1\", topK: 10);\n\n// Query scored vectors by a new, previously unseen vector\nvar vector = new[] { 0.1f, 0.2f, 0.3f, ... };\nvar scored = await index.Query(vector, topK: 10);\n\n// Query scored vectors by ID with metadata filter\nvar filter = new MetadataMap\n{\n    [\"genre\"] = new MetadataMap\n    {\n        [\"$in\"] = new MetadataValue[] { \"documentary\", \"action\" }\n    }\n};\nvar scored = await index.Query(\"birds\", topK: 10, filter);\n\n// Delete vectors by vector IDs\nawait index.Delete(new[] { \"vector1\" });\n\n// Delete vectors by metadata filter\nawait index.Delete(new MetadataMap\n{\n  [\"genre\"] = new MetadataMap\n  {\n     [\"$in\"] = new MetadataValue[] { \"documentary\", \"action\" }\n  }\n});\n\n// Delete all vectors in the index\nawait index.DeleteAll();\n```\n\nWorking with Collections\n```csharp\nusing Pinecone;\n\n// Assuming you have an instance of `PineconeClient` named `pinecone`\n  \n// List all collections\nvar collections = await pinecone.ListCollections();\n\n// Create a new collection\nawait pinecone.CreateCollection(\"myCollection\", \"myIndex\");\n\n// Describe a collection\nvar details = await pinecone.DescribeCollection(\"myCollection\");\n\n// Delete a collection\nawait pinecone.DeleteCollection(\"myCollection\");\n```\n\n## Contributing\n\nContributions are welcome! Feel free open an issue or a PR.\n\n## Support\n\nPriority place for bugs: https://github.com/tryAGI/Pinecone/issues  \nPriority place for ideas and general questions: https://github.com/tryAGI/Pinecone/discussions  \nDiscord: https://discord.gg/Ca2xhfBf3v  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Fpinecone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryagi%2Fpinecone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Fpinecone/lists"}