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
2 changes: 1 addition & 1 deletion examples/FinanceBench/streamlit-main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def task_statement(task_id: TaskId, doc_name: DocName) -> str:
if not st.session_state.task_id:
st.session_state.typed_question: str = st.text_area(label='Question',
value=st.session_state.typed_question,
height=3,
height=68,
max_chars=None,
key=None,
help='Type a Question',
Expand Down
2 changes: 1 addition & 1 deletion examples/semiconductor/streamlit-main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

st.session_state.typed_problem: str = st.text_area(label='Problem/Question',
value=st.session_state.typed_problem,
height=3,
height=68,
max_chars=None,
key=None,
help='Problem/Question',
Expand Down
2 changes: 1 addition & 1 deletion openssa/contrib/streamlit_ssa_prob_solver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def run(self):

self.problem: str = st.text_area(label='Problem to Solve',
value=self.problem,
height=3,
height=68,
max_chars=None,
key=None,
help='State the Problem to Solve',
Expand Down
4 changes: 2 additions & 2 deletions openssa/deprecated/ooda_rag/rag_ooda.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Union, ClassVar
from uuid import uuid4

from llama_index.core.retrievers import BaseRetriever # noqa: TCH002
from llama_index.core.schema import NodeWithScore # noqa: TCH002
from llama_index.core.retrievers import BaseRetriever # noqa: TC002
from llama_index.core.schema import NodeWithScore # noqa: TC002

from openssa.deprecated.ooda_rag.builtin_agents import (
ContextValidator,
Expand Down
2 changes: 1 addition & 1 deletion openssa/deprecated/utils/deprecated/llama_index_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from llama_index.core import ServiceContext
from llama_index.core.llms import OpenAI as LlamaIndexOpenAI
from llama_index.core.llms.llm import LLM # noqa: TCH002
from llama_index.core.llms.llm import LLM # noqa: TC002
from llama_index.core.llms.openai_utils import ALL_AVAILABLE_MODELS, CHAT_MODELS
from llama_index.embeddings.azure_openai import AzureOpenAIEmbedding
from llama_index.embeddings.openai import OpenAIEmbedding
Expand Down
37 changes: 18 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,56 +52,55 @@ ipykernel = ">=6.29"
notebook = ">=7.2"

[tool.poetry.group.docs.dependencies]
sphinx = ">=8.0"
sphinx = ">=8.1"
sphinx-autobuild = ">=2024.10"
sphinx-press-theme = ">=0.9"
myst-parser = ">=4.0"

[tool.poetry.group.lint.dependencies]
flake8 = ">=7.1"
pylint = ">=3.3"
ruff = ">=0.6"
ruff = ">=0.8"

[tool.poetry.group.test.dependencies]
pytest = ">=8.3"

[tool.poetry.dependencies]
python = ">=3.12,<3.14"
# Llama interface
huggingface-hub = ">=0.25"
huggingface-hub = ">=0.26"
# OpenAI interface
openai = ">=1.51"
openai = ">=1.55"
# LlamaIndex & related
llama-index = ">=0.11"
llama-index-embeddings-azure-openai = ">=0.2"
llama-index-llms-azure-openai = ">=0.2"
llama-index-readers-web = ">=0.2"
llama-index = ">=0.12"
llama-index-embeddings-azure-openai = ">=0.3"
llama-index-llms-azure-openai = ">=0.3"
llama-index-readers-web = ">=0.3"
docx2txt = ">=0.8" # for reading .docx files
pypdf = ">=4.3" # for reading .pdf files
pypdf = ">=5.1" # for reading .pdf files
pycryptodome = ">=3.21" # for reading .pdf files: PyCryptodome is required for AES algorithm
# file systems
fsspec = ">=2024.9" # base/local file system
fsspec = ">=2024.10" # base/local file system
adlfs = ">=2024.7" # Azure Data Lake
gcsfs = ">=2024.9" # Google Cloud Storage
s3fs = ">=2024.9" # S3
gcsfs = ">=2024.10" # Google Cloud Storage
s3fs = ">=2024.10" # S3
# misc / other
certifi = ">2023.8"
google-api-python-client = ">=2.147"
google-api-python-client = ">=2.154"
googlesearch-python = ">=1.2"
httpx = ">=0.27"
loguru = ">=0.7"
pydantic = ">=2.9"
pydantic = ">=2.10"
python-dotenv = ">=1.0"
torch = ">=2.2,<2.3" # 2.3 fails installing on Mac with M chip
tqdm = ">=4.66"
tqdm = ">=4.67"

# optional dependencies required by extras
streamlit = {version = ">=1.39", optional = true}
streamlit-extras = {version = ">=0.4", optional = true}
streamlit = {version = ">=1.40", optional = true}
streamlit-extras = {version = ">=0.5", optional = true}
streamlit-mic-recorder = {version = ">=0.0.8", optional = true}

langchainhub = ">=0.1"
faiss-cpu = ">=1.8"
faiss-cpu = ">=1.9"

[tool.poetry.extras]
contrib = [
Expand Down