langchain - 💡(How to fix) Fix docs(core): InMemoryVectorStore public methods are missing docstrings

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Several public methods in InMemoryVectorStore (libs/core/langchain_core/vectorstores/in_memory.py) have no docstrings while the parent VectorStore class documents them fully.

Expected: methods like similarity_search, delete, add_documents, from_texts etc. should have docstrings consistent with the parent class.

Currently: calling help() on these methods returns no documentation.

I have a fix ready and will open a PR immediately.

Error Message

Error Message and Stack Trace (if applicable)

Root Cause

Several public methods in InMemoryVectorStore (libs/core/langchain_core/vectorstores/in_memory.py) have no docstrings while the parent VectorStore class documents them fully.

Expected: methods like similarity_search, delete, add_documents, from_texts etc. should have docstrings consistent with the parent class.

Currently: calling help() on these methods returns no documentation.

I have a fix ready and will open a PR immediately.

Fix Action

Fix / Workaround

  • This is a bug, not a usage question.
  • I added a clear and descriptive title that summarizes this issue.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
  • This is not related to the langchain-community package.
  • I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.

Code Example

from langchain_core.vectorstores import InMemoryVectorStore
help(InMemoryVectorStore.similarity_search)
# Returns no docstring — method is undocumented

---
RAW_BUFFERClick to expand / collapse

Submission checklist

  • This is a bug, not a usage question.
  • I added a clear and descriptive title that summarizes this issue.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
  • This is not related to the langchain-community package.
  • I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.

Package (Required)

  • langchain
  • langchain-openai
  • langchain-anthropic
  • langchain-classic
  • langchain-core
  • langchain-model-profiles
  • langchain-tests
  • langchain-text-splitters
  • langchain-chroma
  • langchain-deepseek
  • langchain-exa
  • langchain-fireworks
  • langchain-groq
  • langchain-huggingface
  • langchain-mistralai
  • langchain-nomic
  • langchain-ollama
  • langchain-openrouter
  • langchain-perplexity
  • langchain-qdrant
  • langchain-xai
  • Other / not sure / general

Related Issues / PRs

No response

Reproduction Steps / Example Code (Python)

from langchain_core.vectorstores import InMemoryVectorStore
help(InMemoryVectorStore.similarity_search)
# Returns no docstring — method is undocumented

Error Message and Stack Trace (if applicable)

Description

Several public methods in InMemoryVectorStore (libs/core/langchain_core/vectorstores/in_memory.py) have no docstrings while the parent VectorStore class documents them fully.

Expected: methods like similarity_search, delete, add_documents, from_texts etc. should have docstrings consistent with the parent class.

Currently: calling help() on these methods returns no documentation.

I have a fix ready and will open a PR immediately.

System Info

python -m langchain_core.sys_info

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING