{"id":25065905,"url":"https://github.com/rivalcoder/pine-cone","last_synced_at":"2025-03-31T13:54:14.647Z","repository":{"id":271186636,"uuid":"912644451","full_name":"Rivalcoder/Pine-Cone","owner":"Rivalcoder","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-06T05:24:06.000Z","size":587,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T19:58:34.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Rivalcoder.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}},"created_at":"2025-01-06T05:14:57.000Z","updated_at":"2025-01-06T05:24:09.000Z","dependencies_parsed_at":"2025-01-06T06:22:59.295Z","dependency_job_id":"40375b76-0592-4270-85ed-d77ef745f859","html_url":"https://github.com/Rivalcoder/Pine-Cone","commit_stats":null,"previous_names":["rivalcoder/pine-cone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rivalcoder%2FPine-Cone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rivalcoder%2FPine-Cone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rivalcoder%2FPine-Cone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rivalcoder%2FPine-Cone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rivalcoder","download_url":"https://codeload.github.com/Rivalcoder/Pine-Cone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246477016,"owners_count":20783926,"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-02-06T19:55:41.912Z","updated_at":"2025-03-31T13:54:14.628Z","avatar_url":"https://github.com/Rivalcoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinecone and Google Generative AI Integration\n\nThis project demonstrates how to integrate Pinecone, a vector database, with Google Generative AI to perform operations such as embedding generation, data insertion, querying, and retrieving index statistics.\n\n## Project Structure\n\n### Files in the Folder:\n1. **`Insert-data.js`**  \n   - Inserts embedding vectors into a Pinecone index.\n   - Generates embeddings for a given content using the Google Generative AI text-embedding model.\n\n2. **`search.js`**  \n   - Queries the Pinecone index using a vector generated from Google Generative AI embeddings.\n   - Retrieves the top K matching vectors with their metadata.\n\n3. **`Find.js`**  \n   - Retrieves and prints information about the Pinecone index, including namespace details and statistics.\n\n---\n\n## Prerequisites\n\n1. **Node.js**  \n   - Ensure you have Node.js installed on your system.\n\n2. **Install Dependencies**  \n   - Install the required libraries:\n     ```bash\n     npm install @pinecone-database/pinecone @google/generative-ai\n     ```\n\n3. **API Keys**  \n   - Obtain and set the following API keys:\n     - **Pinecone API Key**: Available in your Pinecone account.\n     - **Google Generative AI Key**: Available in your Google Cloud Console.\n\n---\n\n## Setup\n\n1. **Environment Variables**  \n   - Store API keys securely by creating an `.env` file in the project root:\n     ```env\n     PINECONE_API_KEY=your-pinecone-api-key\n     GOOGLE_AI_API_KEY=your-google-ai-api-key\n     ```\n\n2. **Folder Structure**:\n   ```plaintext\n   /project-folder\n   ├── Insert-data.js\n   ├── search.js\n   ├── Find.js\n   ├── README.md\n   ├── .env\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivalcoder%2Fpine-cone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frivalcoder%2Fpine-cone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivalcoder%2Fpine-cone/lists"}