-
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.
Merge pull request #11 from nisaji/fix/lg-10
Fix/lg 10
- Loading branch information
Showing
6 changed files
with
88 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
.venv | ||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# dev tools | ||
create_txt.py | ||
file_structure_and_contents.txt | ||
**/**/__pycache__ | ||
# Python cache | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Distribution / packaging | ||
dist/ | ||
build/ | ||
*.egg-info/ | ||
|
||
# Test coverage | ||
.coverage | ||
htmlcov/ | ||
|
||
dist/ | ||
# IDE specific files | ||
.vscode/ | ||
.idea/ | ||
|
||
# OS generated files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Other | ||
create_txt.py | ||
file_structure_and_contents.txt |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[tool.poetry] | ||
name = "langrade" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
description = "A library for grading document relevance using LLMs" | ||
authors = ["nisaji <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
python = "^3.9" # Updated to require Python 3.9+ | ||
langchain = "^0.2.6" | ||
langchain-community = "^0.2.6" | ||
langchain-openai = "^0.1.14" | ||
|
@@ -20,8 +20,7 @@ beautifulsoup4 = "^4.12.3" | |
numpy = "^1.22.5" | ||
chromadb = "^0.5.3,<0.6.0" | ||
|
||
google-generativeai = "^0.7.1" | ||
anthropic = "0.2.8" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "^0.5.0" | ||
mypy = "^1.10.1" | ||
|
@@ -37,7 +36,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.ruff] | ||
line-length = 88 | ||
select = ["E", "F", "W", "C", "N"] | ||
select = ["E", "F", "W", "C", "N", "S"] # Added "S" for security checks | ||
ignore = ["E501", "W503"] | ||
|
||
[tool.isort] | ||
|
@@ -52,3 +51,7 @@ ignore_missing_imports = true | |
|
||
[tool.poetry.scripts] | ||
test = "scripts.run_tests:main" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
addopts = "-v --cov=langrade" |
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,7 +5,7 @@ | |
|
||
setup( | ||
name="langrade", | ||
version="0.1.1", | ||
version="0.1.2", | ||
author="Your Name", | ||
author_email="[email protected]", | ||
description="A library for grading and retrieving documents based on relevance", # noqa: E501 | ||
|
@@ -18,23 +18,20 @@ | |
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
tests_require=[ | ||
"pytest", | ||
"python-dotenv", | ||
], | ||
python_requires=">=3.8", | ||
python_requires=">=3.9", | ||
install_requires=[ | ||
"langchain", | ||
"langchain_core", | ||
"langchain_openai", | ||
"langchain_community", | ||
"openai", | ||
"chromadb", | ||
"tiktoken", | ||
"python-dotenv", | ||
"langchain>=0.2.6,<0.3.0", | ||
"langchain_core>=0.2.11,<0.3.0", | ||
"langchain_openai>=0.1.14,<0.2.0", | ||
"langchain_community>=0.2.6,<0.3.0", | ||
"openai>=1.2.0,<2.0.0", | ||
"chromadb>=0.5.3,<0.6.0", | ||
"tiktoken>=0.5.2,<0.6.0", | ||
"python-dotenv>=1.0.0,<2.0.0", | ||
"beautifulsoup4>=4.12.0,<5.0.0", | ||
], | ||
) |