Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
working-directory: ./langchain
strategy:
matrix:
python-version: ['3.9', '3.13']
python-version: ['3.10', '3.13']
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -30,7 +30,10 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "langchain/pyproject.toml"
# Use the matrix version. Reading pyproject's requires-python made
# setup-python pick the newest release (3.14), which pyo3-ffi 0.22
# cannot build against, so the matrix was never actually tested.
python-version: ${{ matrix.python-version }}
- name: Restore uv cache
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
working-directory: ./langchain
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions langchain/langchain_vectorize/retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import TYPE_CHECKING, Any, Literal, Optional
from typing import TYPE_CHECKING, Any, Literal

from langchain_core.documents import Document
from langchain_core.retrievers import BaseRetriever
Expand Down Expand Up @@ -109,9 +109,9 @@ def format_docs(docs):
"""The Vectorize API token."""
environment: Literal["prod", "dev", "local", "staging"] = "prod"
"""The Vectorize API environment."""
organization: Optional[str] = None
organization: str | None = None
"""The Vectorize organization ID."""
pipeline_id: Optional[str] = None
pipeline_id: str | None = None
"""The Vectorize pipeline ID."""
num_results: int = 5
"""The number of documents to return."""
Expand Down
3 changes: 1 addition & 2 deletions langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["langchain", "vectorize", "retrieval", "search"]
authors = [
{ name = "Vectorize", email = "contact@vectorize.io" },
]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"langchain-core>=0.3.45",
"vectorize-client>=0.4.0",
Expand All @@ -17,7 +17,6 @@ classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
Loading
Loading