langchain-azure / azure-postgresql
Copilot instructions147 starsChanged 3 months agoMITView on GitHub
This project integrates LangChain with Azure Database for PostgreSQL, providing seamless access to vector stores and other database functionalities such as, e.g., Entra ID authentication and DiskANN indexing algorithm, which help improve security and performance when working with large datasets. For this project, we use uv for packaging and dependency management. Similarly, we use pytest and tox to handle testing and test automation. The following commands/tools are useful for the following purposes: If there exists a .env file in 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-cosmosdb/.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
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If there exists a .env file in the root directory, you can replace the uv run command with uv run --env-file .env and keep the rest the …
- Distinctive: line 69
Follow the below guidelines when interacting with the project files:
- Distinctive: line 72
Follow the existing code style and conventions,
- Distinctive: line 73
Always summarize your plan and ask for confirmation before moving forward,
- Distinctive: line 74
Ask before you want to use linters and type checkers to avoid disrupting the workflow, and,
- Very specific: line 76
Use docstrings in sphinx convention.
≈ “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-postgresql
This project integrates LangChain with Azure Database for PostgreSQL, providing seamless access to vector stores and other database functionalities such as, e.g., Entra ID authentication and DiskANN indexing algorithm, which help improve security and performance when working with large datasets.
Tooling
For this project, we use uv for packaging and dependency management. Similarly,
we use pytest and tox to handle testing and test automation. The following
commands/tools are useful for the following purposes:
- Creating the development environment:
uv sync --all-extras - Running tests:
uv run tox -e py - Running lint checks:
uv run tox -m lint - Running type checks:
uv run tox -m type - Running packaging checks:
uv run tox -m package
If there exists a .env file in the root directory, you can replace the
uv run command with uv run --env-file .env and keep the rest the same.
Project Structure
The project has the general structure:
$ tree -L 4 -P '*.py' -P '*.toml'
.
├── pyproject.toml
├── src
│ └── langchain_azure_postgresql
│ ├── common
│ │ ├── aio
│ │ ├── _connection.py
│ │ ├── __init__.py
│ │ └── _shared.py
│ ├── __init__.py
│ └── langchain
│ ├── aio
│ ├── __init__.py
│ ├── _shared.py
│ └── _vectorstore.py
└── tests
├── common
│ ├── __init__.py
│ ├── test_connection.py
│ └── test_shared.py
├── conftest.py
├── __init__.py
├── integration_tests
│ ├── __init__.py
│ └── test_placeholder.py
└── langchain
├── conftest.py
├── __init__.py
└── test_vectorstore.py
10 directories, 18 filesSpecifically, the project follows the standard Python package structure, with separate directories for source code (src/) and tests (tests/), and a
pyproject.toml file for all Python-/tooling-related configurations. We aim to
separate the asynchronous code from the synchronous code, ensuring a clear
distinction between the two, under dedicated directories, such as **/aio/*.py.
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,
- Ask before you want to use linters and type checkers to avoid disrupting the workflow, and,
- Use docstrings in
sphinxconvention.
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.

