r/Langchaindev • • Jun 10 '23

Freelancing GiG

0 Upvotes

UPDATE: Found a developer for the project.

Hi guys, I am looking for a developer to create a finetuned GPT model similar to https://validatorai.com/

Project cost: 350$

Details : Model has to provide critical feedback to users on their business ideas and suggest improvements + marketing strategy.

Duration : <1 week.

High chance of more project collaboration in future.


r/Langchaindev • • Dec 05 '23

ConversationalRetrievalChain is generating questions

Post image
0 Upvotes

Hello all,

I used the chain but for initial "Hello" it is generating a lot of questions and answers on it's own instead of replying "hello how may I assist you" , even though I have set rephrase_question as false.

This is happening for initial Hello only, for further queries it is giving a perfect reply

Can anyone help me?


r/Langchaindev • • Oct 18 '24

I built an AI agent to find customers on autopilot!

4 Upvotes

Hey Reddit!

I've been working on an AI-powered agent that helps you find leads and ideal conversations on Reddit and Twitter, all on autopilot.
If you're looking for a way to introduce your product without the constant manual searching, this might be perfect for you!

Key Features:

  • Lead Generation: Automatically spot high-quality leads based on relevant conversations.

  • Mentions & Sentiment Analysis: Find posts and analyze the sentiment behind each mention to reply more effectively.

  • Keyword Filters: Set up positive and negative keywords to fine-tune your targeting.

  • Export leads: Export all your saved leads as CSV for better follow-up!

How it works (Takes less than 2 minutes!):

  1. Add your website & keywords - Just enter your website and product-related keywords.

  2. Find leads & posts - Our AI scans Reddit and Twitter for any mentions that match.

  3. Save profiles as leads - Track every interaction and save potential customers for easy follow-up.

  4. Receive detailed reports - Get regular reports to track mentions and new leads.

Ready to get started?
Give it a try for free and let us know what you think!

👉 scaloom.com


r/Langchaindev • • Jan 01 '24

Revolucionando el Web Scraping con IA

0 Upvotes

Todos sabemos lo "tedioso" que es hacer web scrapping, entender la estructura de un sitio web para que nuestro código pueda obtener resultados, estar en constante mantenimiento por si el sitio web cambia su estructura o si agregan funcionalidad con java script para cargar dinámicamente la información. Pero ¿Que pasaría si hubiera una manera de convertir este "tedioso" proceso en uno muy sencillo, adaptable a cualquier estructura?

por ejemplo:

Le asignamos la tarea a la IA que se adapte a cualquier estructura de cualquier sitio web y obtenga resultados orgánicos de calidad.

Pueden leer el artículo completo en el siguiente enlace:
Link: https://es.linkedin.com/pulse/revolucionando-el-web-scraping-con-ia-jean-pierre-alvarez-8gmge?trk=public_post_feed-article-content


r/Langchaindev • • Feb 23 '25

UPDATE: Tool Calling with DeepSeek-R1 671B with LangChain and LangGraph

0 Upvotes

I posted about a Github repo I created last week on tool calling with DeepSeek-R1 671B with LangChain and LangGraph, or more generally for any LLMs available in LangChain’s ChatOpenAI class (particularly useful for newly released LLMs which isn’t supported for tool calling yet by LangChain and LangGraph).

https://github.com/leockl/tool-ahead-of-time

This repo just got an upgrade. What’s new:

  • Now available on PyPI! Just "pip install taot" and you're ready to go!

  • Completely redesigned to follow LangChain's and LangGraph's intuitive tool calling patterns.

  • Natural language responses when tool calling is performed.

Kindly give me a star on my repo if this is helpful. Enjoy!


r/Langchaindev • • Jan 13 '25

Help needed for faster retrival

0 Upvotes

Hi developers,

I am currently working on a use case for mapping table and field names from legacy systems to a target system.

The method I've implemented involves creating embeddings of the target table and field names along with labels for each. These embeddings are generated from an Excel sheet where each row is processed using LangChain's document class.

From the front end, I will pass the source column and field names as an Excel file.

The Python script I have written processes each row from the Excel file through an LLM model. This model uses an agent with three defined tools: a table mapping tool, a field mapping tool, and a retrieval tool

However, the issue I am facing is that even for 40 rows, this process takes almost 40 minutes.

Do you have any ideas or methods to reduce this time?


r/Langchaindev • • May 06 '24

langchain response in particular format

0 Upvotes

how to write a prompt which does the work of greeting by introducing it self and another prompt for giving question answers with memory added into it.kindly give the code and the prompt stacking approch using selfquery retrieval.


r/Langchaindev • • Sep 27 '24

Need help in project implementation

1 Upvotes

Develop a web application on project assignments. The application must run end-to-end on your local server. When running, record a video explaining the project briefly and demonstrating the live application.

  1. AI-Based News Aggregator Objective Develop an AI-powered news aggregator that scrapes real-time news data from a defined set of reputable news portals. Components

  2. Data Sources: Select 3 to 5 news portals (e.g., Moneycontrol, Financial Times, Bloomberg).

  3. Data Scraping: Implement a cron job to periodically scrape news data from the selected portals.

  4. Data Preprocessing: Clean and preprocess the scraped data for consistency and relevance.

  5. Vector Database: Store the preprocessed data in a vector database for efficient querying.

  6. Interaction Layer: Utilize a Large Language Model (LLM) to interact with the vector database. User Interaction ● Users can enter a keyword (e.g., "Adani," "Reliance") to get the latest updates. ● The LLM queries the vector database and retrieves the most relevant news articles pertaining to the requested keyword. Expected Outcomes ● Provide users with timely and relevant news updates based on their interests. ● Enhance user experience through natural language interaction with the news data.


r/Langchaindev • • Nov 25 '24

Langchain & Langgraph's documentation is so messed up, even ClosedAI couldn't create an error-free agentic flow even after being instructed to learn from documentation examples

2 Upvotes

Dear Langchain/Langgraph Team,

Please update the documentation and kindly add more examples with other LLMs as well. It seems you're only dedicated to ClosedAI.

This is what I had asked ClosedAI: create a single node SQL Agent using Ollama that gets some input from a vector store along with user's input question.


r/Langchaindev • • May 31 '24

Why learn LangChain (as a JavaScript developer) ?

Thumbnail
js-craft.io
2 Upvotes

r/Langchaindev • • Jun 28 '25

801+ 🔥 downloads in just 5 days of my pypi package

Thumbnail
gallery
2 Upvotes

"Hitting token limits with gpt models using langchain use case ? Here's how semantic-chunker-langchain solves it efficiently with token-aware, paragraph-preserving chunks This solves the problem


r/Langchaindev • • Aug 10 '25

Built my own LangChain alternative for routing, analytics & RAG

2 Upvotes

I’ve been working on JustLLMs, a Python library that focuses on multi-provider support (OpenAI, Anthropic, Google, etc.), cost/speed/quality routing, built-in analytics, caching, RAG, and conversation management — without the chain complexity.

📦 PyPI: https://pypi.org/project/justllms/
⭐ GitHub: https://github.com/just-llms/justllms

Would love to hear from anyone who’s compared LangChain with simpler LLM orchestration tools — what trade-offs did you notice?


r/Langchaindev • • Jun 13 '23

✨ Tutorial: Learn how to use LangChain's prompt template to build a blog outline generator app with Streamlit

3 Upvotes

r/Langchaindev • • Mar 08 '25

UPDATE THIS WEEK: Tool Calling for DeepSeek-R1 671B is now available on Microsoft Azure

4 Upvotes

Exciting news for DeepSeek-R1 enthusiasts! I've now successfully integrated DeepSeek-R1 671B support for LangChain/LangGraph tool calling on Microsoft Azure for both Python & JavaScript developers!

Python (via Langchain's AzureAIChatCompletionsModel class): https://github.com/leockl/tool-ahead-of-time

JavaScript/TypeScript (via Langchain.js's BaseChatModel class): https://github.com/leockl/tool-ahead-of-time-ts

These 2 methods may also be used for LangChain/LangGraph tool calling support for any newly released models on Azure which may not have native LangChain/LangGraph tool calling support yet.

Please give my GitHub repos a star if this was helpful. Hope this helps anyone who needs this. Have fun!


r/Langchaindev • • May 28 '25

RAG Application with Large Documents: Best Practices for Splitting and Retrieval

3 Upvotes

Hey Reddit community, I'm working on a RAG application using Neon Database (PG Vector and Postgres-based) and OpenAI's text-embedding-ada-002 model with GPT-4o mini for completion. I'm facing challenges with document splitting and retrieval. Specifically, I have documents with 20,000 tokens, which I'm splitting into 2,000-token chunks, resulting in 10 chunks per document. When a user's query requires information beyond 5 chunk which is my K value, I'm unsure how to dynamically adjust the K-value for optimal retrieval. For example, if the answer spans multiple chunks, a higher K-value might be necessary, but if the answer is within two chunks, a K-value of 10 could lead to less accurate results. Any advice on best practices for document splitting, storage, and retrieval in this scenario would be greatly appreciated!


r/Langchaindev • • Aug 27 '25

LangChain keeps “almost working”? use a Problem Map to fix the repeat failures

4 Upvotes

small board, so i’ll keep it real. most LangChain pain is not the model. it is structure. i keep a compact Problem Map with 16 repeat failures that show up in LCEL graphs, Agents, and retrievers. each has a short checklist fix. no infra changes.

what usually breaks in LangChain

  • No.1 retrieval drift. Chroma or FAISS has mixed domains or sloppy chunking. top-k looks fine yet answers wander.

  • No.4 chunking drift. token splitters cut inside rows or tables. CSV and PDFs go off by one.

  • No.6 logic collapse. RunnableSequence looks clean, then the chain violates its own earlier step.

  • No.8 black-box debugging. callbacks are on, but you still cannot tell why a chunk won.

  • No.13 multi-agent chaos. ToolInvocation races, retries multiply the error states.

  • No.14 bootstrap ordering. you call tools before the index is actually ready. silent failures.

  • No.15 deployment deadlock. first requests hit an empty or half-filled vector store.

quick hardening that fits LangChain

  • put a semantic firewall in front of your chain. treat each step as a contract: role, scope, allowed tools, evidence required, budget, stop or rollback codes.

  • add provenance per chunk before embedding: source ids, span boundaries, a tiny semantic checksum.

  • minimal trace schema through callbacks: query → candidates → span ids → reason code → violations → chosen.

  • CI check: fail the build if any step violates its contract or if chunk checksums diverge from source.

60-sec repro

  1. open a fresh chat with your model

  2. upload a small TXT rules file like TXTOS or the core layer

  3. ask: “use WFGY to diagnose my LangChain flow. first answer normally. then re-answer using WFGY. compare depth and stability.” you should see fewer detours, cleaner boundaries, visible recovery when the chain stalls.

one link
Problem Map (No.1..No.16, with checklists):
https://github.com/onestardao/WFGY/tree/main/ProblemMap/README.md


r/Langchaindev • • Jun 07 '25

Anyone looking for a job creating AI agents for companies in Sweden? You are in early. Equity will be awarded along with the companies growth.

4 Upvotes

I am currently building an AI agent agency, with the focus of directly increasing my customers profitability, taking a percentage of the profits that we generate them. I have great knowledge in sales, lead generation, funnel building, lead nurture and all other relevant aspects to how we will make them money

Your job: I will instruct you on what kind of AI agent that you are to build, using langchain or other codebased ai agent creation software.

For example: I have a client that has poor lead nurturing. We will fix it with an AI-agent.

- My job then: Give you instructions on how I want the AI agent to nurture leads.

- Your job: Build the AI agent based on my instructions.

So we combine our expertises to create brilliant AI agents.

You are in early. Equity will be awarded along with the companies growth. At $100 000 profit you get x percent. At $1000000 you get x percent again.

Lets build something great.


r/Langchaindev • • Mar 29 '25

UPDATE: Tool Calling with DeepSeek-R1 on Amazon Bedrock!

2 Upvotes

I've updated my package repo with a new tutorial for tool calling support for DeepSeek-R1 671B on Amazon Bedrock via LangChain's ChatBedrockConverse class (successor to LangChain's ChatBedrock class).

Check out the updates here:

-> Python package: https://github.com/leockl/tool-ahead-of-time (please update the package if you had previously installed it).

-> JavaScript/TypeScript package: This was not implemented as there are currently some stability issues with Amazon Bedrock's DeepSeek-R1 API. See the Changelog in my GitHub repo for more details: https://github.com/leockl/tool-ahead-of-time-ts

With several new model releases the past week or so, DeepSeek-R1 is still the 𝐜𝐡𝐞𝐚𝐩𝐞𝐬𝐭 reasoning LLM on par with or just slightly lower in performance than OpenAI's o1 and o3-mini (high).

***If your platform or app is not offering an option to your customers to use DeepSeek-R1 then you are not doing the best by your customers by helping them to reduce cost!

BONUS: The newly released DeepSeek V3-0324 model is now also the 𝐜𝐡𝐞𝐚𝐩𝐞𝐬𝐭 best performing non-reasoning LLM. 𝐓𝐢𝐩: DeepSeek V3-0324 already has tool calling support provided by the DeepSeek team via LangChain's ChatOpenAI class.

Please give my GitHub repos a star if this was helpful ⭐ Thank you!


r/Langchaindev • • Sep 05 '25

From Problem Map → Global Fix Map (300+ structured fixes for RAG / embeddings / vector stores)

3 Upvotes

why this matters to langchain devs

most of us patch errors after they appear in retrieval chains:

  • embeddings mismatch → wrong neighbors

  • chunk drift → “citation exists but never retrieved”

  • faiss / qdrant / redis quirks

  • role/tool orchestration deadlocks

  • long-context retrieval collapse

the global fix map routes these to structured, reproducible fixes. instead of patch jungles, you get a semantic firewall before generation:

  • unstable state? loop/reset before output.

  • once mapped, the bug stays sealed.

highlights

  • RAG + Vector DBs: faiss / pgvector / weaviate / chroma / redis guardrails

  • Embeddings: metric mismatch, normalization, dimension projection, hybrid retrievers

  • Chunking: contract discipline, ids, reindexing policies

  • Parsing / OCR: text integrity before embedding, locale/casing stability

  • Reasoning & Memory: logic collapse recovery, long-context drift, recursion traps

  • Ops: rollbacks, backpressure, deployment deadlocks

each section is vendor-neutral; fixes are tested against multiple stacks (LangChain, LlamaIndex, custom pipelines).

before vs after

  • before: firefighting, regex patches, fragile eval scripts, stability ceiling ~70–85%.

  • after: fix-once-stays-fixed, acceptance targets (ΔS ≤ 0.45, coverage ≥ 0.70, λ convergent across paraphrases). stability >90–95%, debug time cut 60–80%.

how to use

  1. locate your failure mode (symptom → map number).

  2. open the matching page (rag, embeddings, retrieval, etc).

  3. apply the minimal repair.

  4. verify acceptance targets.

  5. gate merges with provided ci/cd templates.

summary: the global fix map is a bug-routing index for llm infra. if you’re tired of whack-a-mole patches in langchain pipelines, this is the upgrade.

👉 full map here: [global fix map readme]
https://github.com/onestardao/WFGY/blob/main/ProblemMap/GlobalFixMap/README.md


r/Langchaindev • • Jun 02 '23

HELP REQUIRED Quick Start Guide - Problems running an example

1 Upvotes

I am trying to run this example at https://python.langchain.com/en/latest/getting_started/getting_started.html#agents-with-chat-models

The agent is supposed to run two searches. One to find out olivia wilde's boyfriend and another to find harry styles' age.

My output runs just the one search and somehow raises 27 to the power of 0.23. I am stuck with this.

> Entering new AgentExecutor chain...
Thought: I need to use a search engine to find Olivia Wilde's boyfriend and a calculator to raise his age to the 0.23 power.
Action:
```
{
  "action": "Search",
  "action_input": "Olivia Wilde boyfriend"
}
```

Observation: Olivia Wilde started dating Harry Styles after ending her years-long engagement to Jason Sudeikis — see their relationship timeline.
Thought:Now I need to use a calculator to raise Harry Styles' age to the 0.23 power.
Action:
```
{
  "action": "Calculator",
  "action_input": "pow(27, 0.23)"
}
```

Observation: Answer: 2.1340945944237553
Thought:I have found the answer to the question.
Final Answer: Harry Styles' current age raised to the 0.23 power is 2.1340945944237553.

I am running the example as is with just my keys added. Anyone knows what I am missing?


r/Langchaindev • • Sep 02 '23

How can I create a chatbot that generates HTML components using predefined classes from a design system, and what is the best approach to manage this without utilizing a vector store?

1 Upvotes

How can I create a chatbot that generates HTML components using predefined classes from a design system, and what is the best approach to manage this without utilizing a vector store?


r/Langchaindev • • Sep 11 '23

A RAG bot can retrieves content on-demand!

2 Upvotes

A RAG bot can retrieves web/local content on demand! it uses ActionWeaver to combine and orchestrate llama index and langchain tools together for a new search experience.

Here is the Github repo

Interactive RAG Demo


r/Langchaindev • • Sep 13 '23

Improving the performance of RAG over 10m+ documents

2 Upvotes

What has the biggest leverage to improve the performance of RAG when operating at scale?

When I was working for a LegalTech startup and we had to ingest millions of litigation documents into a single vector database collection, we figured out that you can increase the retrieval results significantly by using an open source embedding model (sentence-transformers/sentence-t5-xxl) instead of OpenAI ADA.

What other techniques do you see besides swapping the model?

We are building VectorFlow an open-source vector embedding pipeline and want to know what other features we should build next after adding open-source Sentence Transformer embedding models. Check out our Github repo: https://github.com/dgarnitz/vectorflow to install VectorFlow locally or try it out in the playground (https://app.getvectorflow.com/).


r/Langchaindev • • Jun 29 '23

Webinar: Turning your LangChain agent into a profitable startup

Thumbnail
twitter.com
2 Upvotes

r/Langchaindev • • Jul 04 '23

A langchain french communuty

1 Upvotes

Hello, langchain community. I took the liberty to create a French community for all French-speaking enthusiasts who wish to exchange ideas on the subject. The idea came to me due to my difficulty in easily translating all my thoughts into English, which consequently hinders my interaction with posts and comments here.

I aim to reach a wider audience with this new community and introduce people to the incredible toolbox that is Langchain. So, if you are a Francophone and extremely curious, join our community https://www.reddit.com/r/langchainfr/. You won't be disappointed.