Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 105bf41

Browse files
authoredOct 1, 2024··
Drop Python 3.8 support (#163)
* Drop references to Python 3.8 * CHANGLOG
1 parent 9dbe345 commit 105bf41

File tree

10 files changed

+223
-283
lines changed

10 files changed

+223
-283
lines changed
 

‎.github/workflows/pr-e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.8', '3.12']
18+
python-version: ['3.9', '3.12']
1919
neo4j-version:
2020
- 5
2121
neo4j-edition:

‎.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
9+
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
1010
steps:
1111
- name: Install graphviz package
1212
run: sudo apt install graphviz graphviz-dev

‎.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- name: Install pypa/build
1717
run: >-
1818
python3 -m

‎.github/workflows/scheduled-e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15+
python-version: ['3.9', '3.10', '3.11', '3.12']
1616
neo4j-version:
1717
- 5
1818
neo4j-edition:

‎CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
### Added
66
- Added AzureOpenAILLM and AzureOpenAIEmbeddings to support Azure served OpenAI models
77
- Added `template` validation in `PromptTemplate` class upon construction.
8-
- `custom_prompt` arg is now converted to `Text2CypherTemplate` class within the `Text2CypherRetriever.get_search_results` method.
9-
- `Text2CypherTemplate` and `RAGTemplate` prompt templates now require `query_text` arg and will error if it is not present. Previous `query_text` aliases may be used, but will warn of deprecation.
108
- Examples demonstrating the use of Mistral embeddings and LLM in RAG pipelines.
11-
- Fixed bug in `Text2CypherRetriever` using `custom_prompt` arg where the `search` method would not inject the `query_text` content.
129
- Added feature to include kwargs in `Text2CypherRetriever.search()` that will be injected into a custom prompt, if provided.
1310
- Added validation to `custom_prompt` parameter of `Text2CypherRetriever` to ensure that `query_text` placeholder exists in prompt.
1411
- Introduced a fixed size text splitter component for splitting text into specified fixed size chunks with overlap. Updated examples and tests to utilize this new component.
@@ -20,6 +17,9 @@
2017

2118
### Fixed
2219
- Resolved import issue with the Vertex AI Embeddings class.
20+
- Fixed bug in `Text2CypherRetriever` using `custom_prompt` arg where the `search` method would not inject the `query_text` content.
21+
- `custom_prompt` arg is now converted to `Text2CypherTemplate` class within the `Text2CypherRetriever.get_search_results` method.
22+
- `Text2CypherTemplate` and `RAGTemplate` prompt templates now require `query_text` arg and will error if it is not present. Previous `query_text` aliases may be used, but will warn of deprecation.
2323
- Resolved issue where Neo4jWriter component would raise an error if the start or end node ID was not defined properly in the input.
2424
- Resolved issue where relationship types was not escaped in the insert Cypher query.
2525
- Improved query performance in Neo4jWriter.
@@ -28,6 +28,7 @@
2828
- Moved the Embedder class to the neo4j_graphrag.embeddings directory for better organization alongside other custom embedders.
2929
- Removed query argument from the GraphRAG class' `.search` method; users must now use `query_text`.
3030
- Neo4jWriter component now runs a single query to merge node and set its embeddings if any.
31+
- Dropped support for Python 3.8 (end of life).
3132

3233
## 0.6.3
3334
### Changed

‎CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Remember that many community members have become regular contributors and some a
5454
## Specifically for this project
5555
Setting up the development environment:
5656

57-
1. Install Python 3.8.1+
57+
1. Install Python 3.9+
5858
2. Install poetry (see https://python-poetry.org/docs/#installation)
5959
3. Install dependencies:
6060

‎README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ Python versions supported:
1414
* Python 3.11 supported.
1515
* Python 3.10 supported.
1616
* Python 3.9 supported.
17-
* Python 3.8 supported.
1817

1918
# Usage
2019

2120
## Installation
2221

23-
This package requires Python (>=3.8.1).
22+
This package requires Python (>=3.9).
2423

2524
To install the latest stable version, use:
2625

‎docs/source/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Python versions supported:
2727
* Python 3.11
2828
* Python 3.10
2929
* Python 3.9
30-
* Python 3.8
3130

3231

3332
******
@@ -60,7 +59,7 @@ Usage
6059
Installation
6160
************
6261

63-
This package requires Python (>=3.8.1).
62+
This package requires Python (>=3.9).
6463

6564
To install the latest stable version, use:
6665

@@ -302,4 +301,4 @@ Indices and tables
302301

303302
* :ref:`genindex`
304303
* :ref:`modindex`
305-
* :ref:`search`
304+
* :ref:`search`

‎poetry.lock

Lines changed: 210 additions & 269 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ include = "neo4j_graphrag"
2828
from = "src"
2929

3030
[tool.poetry.dependencies]
31-
python = "^3.8.1"
31+
python = "^3.9.0"
3232
neo4j = "^5.17.0"
3333
pydantic = "^2.6.3"
3434
weaviate-client = {version = "^4.6.1", optional = true}

0 commit comments

Comments
 (0)
Please sign in to comment.