-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try remove typing extension from dependency and try running on py312 env
- Loading branch information
1 parent
6c87844
commit 3b41ef7
Showing
10 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,27 +5,27 @@ build-backend = "hatchling.build" | |
[project] | ||
name = "bbm25-haystack" | ||
dynamic = ["version"] | ||
description = 'Haystack 2.x In-memory Document Store with Enhanced Efficiency' | ||
description = 'Haystack 2.x In-memory BM25 Document Store with Enhanced Efficiency' | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = "Apache-2.0" | ||
keywords = ["Document Search", "BM25", "LLM Agent", "RAG", "Haystack"] | ||
authors = [ | ||
{ name = "Yuxuan Wang", email = "[email protected]" }, | ||
{ name = "Guest400123064", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dependencies = [ | ||
"haystack-ai", | ||
"sentencepiece", | ||
"typing_extensions", | ||
] | ||
|
||
[project.urls] | ||
|
@@ -41,6 +41,7 @@ dependencies = [ | |
"coverage[toml]>=6.5", | ||
"pytest", | ||
"pytest-cov", | ||
"hypothesis", | ||
] | ||
[tool.hatch.envs.default.scripts] | ||
test = "pytest {args:tests}" | ||
|
@@ -55,7 +56,7 @@ cov = [ | |
] | ||
|
||
[[tool.hatch.envs.all.matrix]] | ||
python = ["3.9", "3.10", "3.11"] | ||
python = ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
[tool.hatch.envs.lint] | ||
detached = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from bbm25_haystack.bbm25_retriever import BetterBM25Retriever | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from typing import Any, Optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
import heapq | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from collections.abc import Iterable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
import pandas as pd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]> | ||
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from typing import Any | ||
|