Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asasvirtuais/gitinbed
A simple solution to combine Version Control with Embed Indexing. Creates, updates, and removes embeddings of the repository files based on GIT A (Added Files), M (Modified Files), R (Removed Files), using Voyage and Pinecone.
https://github.com/asasvirtuais/gitinbed
actions embeddings pinecone voyage workflow
Last synced: about 1 month ago
JSON representation
A simple solution to combine Version Control with Embed Indexing. Creates, updates, and removes embeddings of the repository files based on GIT A (Added Files), M (Modified Files), R (Removed Files), using Voyage and Pinecone.
- Host: GitHub
- URL: https://github.com/asasvirtuais/gitinbed
- Owner: asasvirtuais
- License: mit
- Created: 2024-08-16T19:32:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T12:25:44.000Z (2 months ago)
- Last Synced: 2024-09-29T12:01:18.174Z (about 2 months ago)
- Topics: actions, embeddings, pinecone, voyage, workflow
- Language: TypeScript
- Homepage:
- Size: 634 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> Git in bed or get embedded
Creates, updates, and removes embeddings of the repository files based on GIT A (Added Files), M (Modified Files), R (Removed Files), using Voyage and Pinecone
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitHub release](https://img.shields.io/github/release/asasvirtuais/gitinbed.svg)](https://GitHub.com/asasvirtuais/gitinbed/releases/)## Usage example with Workflow file
.github/workflows/git-repo-embed.yml
```.yml
name: gitinbedon:
push:
branches:
- mainjobs:
update-embeddings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44- name: Update Embeddings
uses: asasvirtuais/gitinbed@main
env:
VOYAGE_MODEL: voyage-large-2-instruct
PINECONE_INDEX: ${{ github.repository_owner }}
PINECONE_NAMESPACE: ${{ github.event.repository.name }}
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}
with:
created: ${{ steps.changed-files.outputs.added_files }}
updated: ${{ steps.changed-files.outputs.modified_files }}
removed: ${{ steps.changed-files.outputs.deleted_files }}
```## Pinecone results:
![asasvirtuais-Pinecone-Console](https://github.com/user-attachments/assets/6ed20d9e-f541-417e-a868-031159dab564)