Skip to content

Conversation

shravankumar147
Copy link

Description:
Added a new tutorial llm_loader.py and llm_loader.ipynb in docs/docs/tutorials/ that demonstrates how to load LLMs from different providers (OpenAI, OpenRouter, Groq, Ollama) with a unified function.

Issue:
N/A (tutorial contribution)

Dependencies:
No new dependencies. Uses existing optional integrations: langchain_openai, langchain_groq, langchain_ollama.

Twitter handle:
@shravankumar147

Copy link

vercel bot commented Aug 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
langchain Ready Ready Preview Comment Aug 20, 2025 5:35pm

Copy link

codspeed-hq bot commented Aug 20, 2025

CodSpeed WallTime Performance Report

Merging #32620 will improve performances by 11.7%

Comparing shravankumar147:feature/llm-loader (b6b8d6a) with master (f896bcd)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

⚡ 3 improvements
✅ 10 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
test_import_time[BaseChatModel] 537.2 ms 480.9 ms +11.7%
test_import_time[ChatPromptTemplate] 449.3 ms 406.6 ms +10.51%
test_import_time[InMemoryVectorStore] 264.2 ms 236.6 ms +11.64%

Copy link

codspeed-hq bot commented Aug 20, 2025

CodSpeed Instrumentation Performance Report

Merging #32620 will not alter performance

Comparing shravankumar147:feature/llm-loader (b6b8d6a) with master (f896bcd)

Summary

✅ 14 untouched benchmarks

@mdrxy mdrxy self-assigned this Aug 21, 2025
@mdrxy mdrxy added the documentation Improvements or additions to documentation label Aug 21, 2025
@mdrxy mdrxy changed the title docs(tutorials): add unified LLM loader example for OpenAI, Groq, Ollama, OpenRouter docs: add unified LLM loader example for OpenAI, Groq, Ollama, OpenRouter Sep 11, 2025
@mdrxy
Copy link
Collaborator

mdrxy commented Sep 11, 2025

Sorry, we are not taking new tutorial submissions at this time. If you would like, you can propose an addition to the new docs repo in a few weeks once things settle down there.

Thank you!

@mdrxy mdrxy closed this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation INTERNAL-MAINTAINER-NOTE-move-to-new-repo FOR LANGCHAIN STAFF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants