<!-- .github/pull_request_template.md --> ## Description Resolve Gemini Adapter issues: 1. resolve embedding batch issue, 2. Resolve slowness because gemini tokenizer was sending word per word to Googles API to count tokens (using OpenAI's local tokenizer to count tokens for Gemini now) 3. Update deprecated library and move to instructor ## Type of Change <!-- Please check the relevant option --> - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Other (please specify): ## Pre-submission Checklist <!-- Please check all boxes that apply before submitting your PR --> - [ ] **I have tested my changes thoroughly before submitting this PR** - [ ] **This PR contains minimal changes necessary to address the issue/feature** - [ ] My code follows the project's coding standards and style guidelines - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation (if applicable) - [ ] All new and existing tests pass - [ ] I have searched existing PRs to ensure this change hasn't been submitted already - [ ] I have linked any relevant issues in the description - [ ] My commits have clear and descriptive messages ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: cognee-setup
|
|
description: "Sets up Python, installs uv, and installs dependencies for Cognee."
|
|
|
|
inputs:
|
|
python-version:
|
|
description: "Which Python version to use"
|
|
required: false
|
|
default: "3.11.x"
|
|
extra-dependencies:
|
|
description: "Additional extra dependencies to install (space-separated)"
|
|
required: false
|
|
default: ""
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Rebuild uv lockfile
|
|
shell: bash
|
|
run: |
|
|
rm uv.lock
|
|
uv lock
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
EXTRA_ARGS=""
|
|
if [ -n "${{ inputs.extra-dependencies }}" ]; then
|
|
IFS=' ' read -r -a deps <<< "${{ inputs.extra-dependencies }}"
|
|
for extra in "${deps[@]}"; do
|
|
EXTRA_ARGS="$EXTRA_ARGS --extra $extra"
|
|
done
|
|
fi
|
|
uv sync --extra api --extra docs --extra evals --extra codegraph --extra ollama --extra dev --extra neo4j $EXTRA_ARGS
|