docs: Update customizations how-to guides to use collections API and LLM factory - #2425
Merged
anistark merged 3 commits intoNov 28, 2025
Merged
Conversation
Replace legacy LangChain wrapper pattern with llm_factory and
embedding_factory using LiteLLM provider for all cloud providers.
Changes:
Updated examples
- Removed LangChain dependencies (langchain_openai, langchain_google_vertexai,
langchain_aws) in favor of litellm
- Fixed Azure model naming to use deployment names (azure/{deployment-name})
- Removed unnecessary interface="modern" parameter (auto-detected)
Benefits:
- Consistent pattern across all cloud providers
- Simpler code with fewer dependencies
- No LangChain required
- Uses modern Ragas factory APIs with Instructor and LiteLLM
All syntax verified against LiteLLM and Instructor documentation.
sanjeed5
force-pushed
the
docs/update-howtos-customizations
branch
from
November 27, 2025 13:46
ba00799 to
fff3d36
Compare
- Use litellm.completion (function) instead of litellm (module) - Pass Azure config directly to embedding_factory instead of global settings - Add clarifying comments about the correct patterns Tested with actual API calls via OpenAI/litellm integration.
anistark
approved these changes
Nov 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Link / Problem Description
Updates
customize_models.mdguide to use modernllm_factoryandembedding_factoryAPIs instead of legacy LangChain wrapper pattern.Changes Made
llm_factorywith litellm providerllm_factorywith litellm provider (major simplification)llm_factorywith litellm providerTesting
How to Test
References