{"id":32481518,"url":"https://github.com/codingwithtashi/json-vector-embedder","last_synced_at":"2025-10-27T02:55:38.400Z","repository":{"id":265582570,"uuid":"896288018","full_name":"CodingWithTashi/json-vector-embedder","owner":"CodingWithTashi","description":"Json Vector Embedder","archived":false,"fork":false,"pushed_at":"2024-11-30T02:06:21.000Z","size":239,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-30T02:25:10.441Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodingWithTashi.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":"2024-11-30T00:59:22.000Z","updated_at":"2024-11-30T02:06:25.000Z","dependencies_parsed_at":"2024-11-30T02:25:15.568Z","dependency_job_id":"15e13151-575f-4060-9e05-786ad7bb41e4","html_url":"https://github.com/CodingWithTashi/json-vector-embedder","commit_stats":null,"previous_names":["codingwithtashi/json-vector-embedder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodingWithTashi/json-vector-embedder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingWithTashi%2Fjson-vector-embedder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingWithTashi%2Fjson-vector-embedder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingWithTashi%2Fjson-vector-embedder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingWithTashi%2Fjson-vector-embedder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingWithTashi","download_url":"https://codeload.github.com/CodingWithTashi/json-vector-embedder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingWithTashi%2Fjson-vector-embedder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281207078,"owners_count":26461324,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"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":[],"created_at":"2025-10-27T02:55:35.519Z","updated_at":"2025-10-27T02:55:38.386Z","avatar_url":"https://github.com/CodingWithTashi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vector Embedding Project with JSON and Pinecone\n\n## Overview\nThis project demonstrates how to perform vector embeddings on JSON data using a Language Model (LLM), store the embeddings in Pinecone, and enable semantic search and retrieval.\n\n## Prerequisites\n- Python 3.8+\n- Pinecone account\n- OpenAI API key (or alternative LLM provider)\n- Required Python libraries:\n  - `pinecone-client`\n  - `gemini`\n  - `node`\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/CodingWithTashi/json-vector-embedder.git\ncd json-vector-embedder\n```\n\n2. Install dependencies:\n```bash\nnpm i\n```\n\n3. Set up environment variables:\n```bash\nNEXT_PUBLIC_PINECONE_API_KEY=key\nNEXT_PUBLIC_PINECONE_INDEX=key\nNEXT_PUBLIC_GOOGLE_API_KEY=key\n```\n\n## Step-by-Step Process\n\n### 1. Import JSON Data\n```python\nimport json\n\nimport inpuDataList from \"../../example.data.json\";\n\nexport async function loadInputData(): Promise\u003cInputData[]\u003e {\n  try {\n    if (inpuDataList.length === 0) {\n      throw new Error(\"No data found in the JSON file\");\n    } else if (inpuDataList.length == 1 \u0026\u0026 inpuDataList[0].type === \"test\") {\n      throw new Error(\"Add actual json data to example.data.json\");\n    } else {\n      return inpuDataList as InputData[];\n    }\n  } catch (error) {\n    console.error(\"Error loading or parsing JSON file:\", error);\n    throw error;\n  }\n}\n```\n\n### 2. Save Embeddings in Pinecone\n```\nawait PineconeStore.fromDocuments(docs, embeddings, {\n        pineconeIndex: index,\n        namespace: \"monastery_data\", // Added specific namespace\n      });\n```\n\n### 3. Query with LLM\n```\nconst vectorQueryResponse = await pineconeIndex\n      .namespace(\"monastery_data\")\n      .query({\n        vector: embedding,\n        topK: 4,\n        includeMetadata: true,\n      });\n```\n\n## Contributing\nContributions are welcome! Please submit a pull request or open an issue.\n\n\n## Acknowledgements\n- Pinecone\n- OpenAI/Gemini\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingwithtashi%2Fjson-vector-embedder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingwithtashi%2Fjson-vector-embedder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingwithtashi%2Fjson-vector-embedder/lists"}