langchain-azure / azure-cosmosdb
Copilot instructions147 starsChanged 3 months agoMITView on GitHub
This project provides Azure CosmosDB NoSQL integrations for both LangChain and LangGraph, including vector store, semantic cache, chat message history, query constructors, LangGraph checkpointer, and LangGraph cache — all with both synchronous and asynchronous implementations. For this project, we use poetry for packaging and dependency management, and pytest for testing. The following commands are useful: If there exists a .env file in the root directory, source it before running integration tests: set -a && source .env && set +a. The…
- Reads credentials
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- libs/azure-ai/AGENTS.mdAGENTS.md
- samples/deepagents-storage-backend/mortgage-processing/AGENTS.mdAGENTS.md
- libs/azure-postgresql/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- release-notesSkill
- document-classificationSkill
- mortgage-fact-extractionSkill
- mortgage-underwritingSkill
- packet-intakeSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If there exists a .env file in the root directory, source it before running integration tests: set -a && source .env && set +a.
- Distinctive: line 77
Follow the below guidelines when interacting with the project files:
- Distinctive: line 80
Follow the existing code style and conventions,
- Distinctive: line 81
Always summarize your plan and ask for confirmation before moving forward,
- Distinctive: line 82
Use Google-style docstrings (configured via ruff pydocstyle),
- Distinctive: line 83
Ensure all public functions have type annotations, and,
- Distinctive: line 84
Keep sync and async implementations in separate files.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
langchain-azure-cosmosdb
This project provides Azure CosmosDB NoSQL integrations for both LangChain and LangGraph, including vector store, semantic cache, chat message history, query constructors, LangGraph checkpointer, and LangGraph cache — all with both synchronous and asynchronous implementations.
Tooling
For this project, we use poetry for packaging and dependency management, and
pytest for testing. The following commands are useful:
- Creating the development environment:
poetry install --with test,lint,typing - Running unit tests:
make test - Running integration tests:
make integration_tests - Running lint checks:
make lint_packageandmake lint_tests - Formatting code:
make format
If there exists a .env file in the root directory, source it before running
integration tests: set -a && source .env && set +a.
Project Structure
The project has the general structure:
$ tree -L 4 -P '*.py' --prune
.
├── pyproject.toml
├── src
│ └── langchain_azure_cosmosdb
│ ├── __init__.py
│ ├── langchain
│ │ ├── __init__.py
│ │ ├── _cache.py
│ │ ├── _chat_history.py
│ │ ├── _query_constructor.py
│ │ ├── _utils.py
│ │ ├── _vectorstore.py
│ │ └── aio
│ │ ├── __init__.py
│ │ ├── _cache.py
│ │ ├── _chat_history.py
│ │ └── _vectorstore.py
│ └── langgraph
│ ├── __init__.py
│ ├── _cache.py
│ ├── _checkpoint_store.py
│ └── aio
│ ├── __init__.py
│ ├── _cache.py
│ └── _checkpoint_store.py
└── tests
├── __init__.py
├── unit_tests
│ ├── __init__.py
│ ├── test_imports.py
│ ├── langchain
│ │ └── (sync + async tests)
│ └── langgraph
│ └── (sync + async tests)
└── integration_tests
├── __init__.py
├── langchain
│ └── (sync + async tests)
└── langgraph
└── (sync + async tests)Specifically, the project follows the standard Python src/ layout, with
separate directories for LangChain integrations (langchain/) and LangGraph
integrations (langgraph/). Asynchronous code lives under dedicated aio/
subdirectories.
General Coding Guidelines
Follow the below guidelines when interacting with the project files:
- Be concise,
- Follow the existing code style and conventions,
- Always summarize your plan and ask for confirmation before moving forward,
- Use Google-style docstrings (configured via ruff pydocstyle),
- Ensure all public functions have type annotations, and,
- Keep sync and async implementations in separate files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

