Skip to content

feat: add google gemini bindings for lightrag-server #1561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

drahnreb
Copy link
Contributor

Description

Added Google Bindings

Related Issues

None

Changes Made

  • llm/google.py with embedding and llm async funcs
  • GemmaTokenizer in utils
  • updated README
  • usage example via .env.example

Checklist

  • Changes tested locally
  • Code reviewed
  • Documentation updated (if necessary)
  • Unit tests added (if applicable)

Additional Notes

Copy link
Collaborator

@danielaskdd danielaskdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for providing native Google API support for LightRAG. There are conflicts in this PR that need to be resolved.

pm.install("tenacity") # tenacity for retries
if not pm.is_installed("pydantic"): # For response_schema if using Pydantic models
pm.install("pydantic")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since pydantic and tenacity are already listed in requirements.txt, they should be removed from the dynamic import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants