cognee/cognee
Igor Ilic 38cdacbcb6
fix: Resolve issue with Gemini adapter (#1494)
<!-- .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.
2025-10-07 18:04:18 +02:00
..
api fix: resolve formatting issue (#1486) 2025-09-30 18:12:57 +02:00
cli fix: update failing tests and refactor delete_preview implementation 2025-10-02 15:05:39 +01:00
eval_framework refactor: Add proper pip install command for optional extras 2025-09-25 13:55:01 +02:00
exceptions
infrastructure fix: Resolve issue with Gemini adapter (#1494) 2025-10-07 18:04:18 +02:00
modules fix: update failing tests and refactor delete_preview implementation 2025-10-02 15:05:39 +01:00
shared Merge branch 'dev' into COG-2826 2025-09-25 13:31:21 +02:00
tasks fix: Resolve issue with Gemini adapter (#1494) 2025-10-07 18:04:18 +02:00
tests fix: Resolve issue with Gemini adapter (#1494) 2025-10-07 18:04:18 +02:00
__init__.py feat: add support to start ui programmatically from cognee package 2025-09-10 14:15:31 +01:00
__main__.py
base_config.py fix: ruff formatting error 2025-09-19 17:55:08 +02:00
context_global_variables.py
get_token.py
low_level.py
pipelines.py
root_dir.py fix: Add S3 URL handling in ensure_absolute_path function (#1438) 2025-09-18 11:47:34 +02:00
version.py