-
Notifications
You must be signed in to change notification settings - Fork 571
Documenting thirdparty langchain-localai reranker #1282
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new LocalAI Reranker documentation page and updates the LocalAI embeddings page title for consistency.
Key changes:
- Created documentation for LocalAI Reranker functionality with installation and usage examples
- Updated the LocalAI embedding page title from "LocalAI" to "LocalAI Embedding" for clarity
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/oss/python/integrations/text_embedding/localai.mdx |
Updated page title to "LocalAI Embedding" for consistency with other embedding integration pages |
src/oss/python/integrations/document_transformers/localai_rerank.mdx |
Added new documentation page for LocalAI Reranker with installation instructions and usage example |
src/oss/python/integrations/document_transformers/localai_rerank.mdx
Outdated
Show resolved
Hide resolved
src/oss/python/integrations/document_transformers/localai_rerank.mdx
Outdated
Show resolved
Hide resolved
…nk.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…nk.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
src/oss/python/integrations/document_transformers/localai_rerank.mdx
Outdated
Show resolved
Hide resolved
src/oss/python/integrations/document_transformers/localai_rerank.mdx
Outdated
Show resolved
Hide resolved
…nk.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…nk.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| openai_api_key=os.environ.get("OPENAI_API_KEY"), | ||
| model="bge-reranker-v2-m3", | ||
| openai_api_base="http://localhost:8080", | ||
| ) |
Copilot
AI
Nov 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation is inconsistent. The arguments in the LocalAIRerank constructor have excessive indentation (8 spaces) which differs from standard Python conventions. Consider using 4 spaces for better consistency with the rest of the codebase.
| openai_api_key=os.environ.get("OPENAI_API_KEY"), | |
| model="bge-reranker-v2-m3", | |
| openai_api_base="http://localhost:8080", | |
| ) | |
| openai_api_key=os.environ.get("OPENAI_API_KEY"), | |
| model="bge-reranker-v2-m3", | |
| openai_api_base="http://localhost:8080", | |
| ) |
Overview
Documenting thirdparty langchain-localai reranker
Type of change
Type: New documentation page
Related issues/PRs
mkhludnev/langchain-localai#6
Checklist
docs devsrc/docs.jsonif neededAdditional notes