Skip to content

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.

License

Notifications You must be signed in to change notification settings

asasvirtuais/gitinbed

Folders and files

NameName
Last commit message
Last commit date
Aug 18, 2024
Aug 18, 2024
Aug 19, 2024
Aug 18, 2024
Aug 18, 2024
Aug 19, 2024
Aug 18, 2024
Oct 14, 2024
Sep 9, 2024
Aug 18, 2024

Repository files navigation

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 GitHub release

Usage example with Workflow file

.github/workflows/git-repo-embed.yml

name: gitinbed

on:
  push:
    branches:
      - main

jobs:
  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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published