๐ก All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Require Python 3.7, closes #175
davidmezzetti365f2ca0a747
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 7056588a..87c0bb93 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -8,13 +8,13 @@ jobs:runs-on: ${{ matrix.os }}strategy:matrix:- os: [ubuntu-latest, macos-latest, windows-latest]+ os: [ubuntu-latest, macos-11, windows-latest]steps:- uses: actions/checkout@v2- uses: actions/setup-python@v2with:- python-version: 3.6+ python-version: 3.7- uses: actions/setup-java@v1with:java-version: 1.8@@ -25,7 +25,7 @@ jobs:- name: Install dependencies - MacOSrun: brew install libomp- if: matrix.os == 'macos-latest'+ if: matrix.os == 'macos-11'- name: Install dependencies - Windowsrun: choco install wgetdiff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex c2d48e38..602ee499 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -10,7 +10,7 @@ jobs:- uses: actions/checkout@v2- uses: actions/setup-python@v2with:- python-version: 3.6+ python-version: 3.7- run: pip install mkdocs-material mkdocstrings git+https://github.com/neuml/txtai#egg=txtai[all]- run: mkdocs gh-deploy --force\ No newline at end of filediff --git a/README.md b/README.mdindex 81e7a2d1..2894b10d 100644--- a/README.md+++ b/README.md@@ -55,7 +55,7 @@ Applications range from similarity search to complex NLP-driven data extractions| [neuspo](https://neuspo.com) | Fact-driven, real-time sports event and news site || [codequestion](https://github.com/neuml/codequestion) | Ask coding questions directly from the terminal |-txtai is built with Python 3.6+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)+txtai is built with Python 3.7+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)## Why txtai?@@ -74,7 +74,7 @@ The easiest way to install is via pip and PyPIpip install txtai-Python 3.6+ is supported. Using a Python [virtual environment](https://docs.python.org/3/library/venv.html) is recommended.+Python 3.7+ is supported. Using a Python [virtual environment](https://docs.python.org/3/library/venv.html) is recommended.See the detailed [install instructions](https://neuml.github.io/txtai/install) for more information covering[installing from source](https://neuml.github.io/txtai/install/#install-from-source),diff --git a/README_ko.md b/README_ko.mdindex 11501277..1e8a6678 100644--- a/README_ko.md+++ b/README_ko.md@@ -55,7 +55,7 @@ txtai ํน์ง ์์ฝ:| [neuspo](https://neuspo.com) | ์ฌ์ค ๊ธฐ๋ฐ์ ์ค์๊ฐ ์คํฌ์ธ ์ด๋ฒคํธ ๋ฐ ๋ด์ค ์ฌ์ดํธ || [codequestion](https://github.com/neuml/codequestion) | ํฐ๋ฏธ๋์์ ์ง์ ์ฝ๋ฉ์ ๊ดํ ์ง๋ฌธ์ ํฉ๋๋ค. |-txtai๋ Python 3.6+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) ๊ทธ๋ฆฌ๊ณ [FastAPI](https://github.com/tiangolo/fastapi) ๋ก ๋ง๋ค์ด์ก์ต๋๋ค.+txtai๋ Python 3.7+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) ๊ทธ๋ฆฌ๊ณ [FastAPI](https://github.com/tiangolo/fastapi) ๋ก ๋ง๋ค์ด์ก์ต๋๋ค.## ์ txtai์ธ๊ฐ์?@@ -74,7 +74,7 @@ txtai๋ Python 3.6+, [Hugging Face Transformers](https://github.com/huggingfacepip install txtai-Python 3.6+ ์ด ์ง์๋ฉ๋๋ค.. ํ์ด์ฌ [๊ฐ์ ํ๊ฒฝ](https://docs.python.org/3/library/venv.html) ์ ์ฌ์ฉํ๋ ๊ฑธ ์ถ์ฒ๋๋ฆฝ๋๋ค.+Python 3.7+ ์ด ์ง์๋ฉ๋๋ค.. ํ์ด์ฌ [๊ฐ์ ํ๊ฒฝ](https://docs.python.org/3/library/venv.html) ์ ์ฌ์ฉํ๋ ๊ฑธ ์ถ์ฒ๋๋ฆฝ๋๋ค.[์์ค ์ค์น](https://neuml.github.io/txtai/install/#install-from-source),[ํ๊ฒฝ๋ณ ํ์ ๊ตฌ์ฑ ์์](https://neuml.github.io/txtai/install/#environment-specific-prerequisites) ๋ฐdiff --git a/docker/api.Dockerfile b/docker/api.Dockerfileindex 7649c89a..9adab8c5 100644--- a/docker/api.Dockerfile+++ b/docker/api.Dockerfile@@ -11,17 +11,17 @@ EXPOSE 8000# Install required packagesRUN apt-get update && \- apt-get -y --no-install-recommends install libgomp1 libsndfile1 gcc g++ python3.6 python3-dev python3-pip && \+ apt-get -y --no-install-recommends install libgomp1 libsndfile1 gcc g++ python3.7 python3.7-dev python3-pip && \rm -rf /var/lib/apt/lists# Install txtai project and dependencies-RUN ln -s /usr/bin/python3.6 /usr/bin/python && \+RUN ln -s /usr/bin/python3.7 /usr/bin/python && \python -m pip install --no-cache-dir -U pip wheel setuptools && \python -m pip install --no-cache-dir txtai[api,pipeline] && \python -c "import nltk; nltk.download('punkt')"# Cleanup build packages-RUN apt-get -y purge gcc g++ python3-dev && apt-get -y autoremove+RUN apt-get -y purge gcc g++ python3.7-dev && apt-get -y autoremove# Generate YAML fileRUN echo "path: /txtai" > index.yml && \diff --git a/docs/index.md b/docs/index.mdindex 6a93ffef..981ac5f1 100644--- a/docs/index.md+++ b/docs/index.md@@ -57,4 +57,4 @@ Applications range from similarity search to complex NLP-driven data extractions| [neuspo](https://neuspo.com) | Fact-driven, real-time sports event and news site || [codequestion](https://github.com/neuml/codequestion) | Ask coding questions directly from the terminal |-txtai is built with Python 3.6+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)+txtai is built with Python 3.7+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)diff --git a/docs/install.md b/docs/install.mdindex 8a12458c..aa0acc90 100644--- a/docs/install.md+++ b/docs/install.md@@ -4,7 +4,7 @@ The easiest way to install is via pip and PyPIpip install txtai-Python 3.6+ is supported. Using a Python [virtual environment](https://docs.python.org/3/library/venv.html) is recommended.+Python 3.7+ is supported. Using a Python [virtual environment](https://docs.python.org/3/library/venv.html) is recommended.## Install from sourcediff --git a/examples/01_Introducing_txtai.ipynb b/examples/01_Introducing_txtai.ipynbindex f905ea34..17a8a82e 100644--- a/examples/01_Introducing_txtai.ipynb+++ b/examples/01_Introducing_txtai.ipynb@@ -56,7 +56,7 @@"- [neuspo](https://neuspo.com) - Fact-driven, real-time sports event and news site\n","- [codequestion](https://github.com/neuml/codequestion) - Ask coding questions directly from the terminal\n","\n",- "txtai is built with Python 3.6+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)\n",+ "txtai is built with Python 3.7+, [Hugging Face Transformers](https://github.com/huggingface/transformers), [Sentence Transformers](https://github.com/UKPLab/sentence-transformers) and [FastAPI](https://github.com/tiangolo/fastapi)\n","\n","This notebook gives an overview of txtai and how to run similarity searches."]@@ -386,4 +386,4 @@]}]-}\ No newline at end of file+}diff --git a/setup.py b/setup.pyindex d5fe686c..f67277d6 100644--- a/setup.py+++ b/setup.py@@ -66,7 +66,7 @@ setup(packages=find_packages(where="src/python"),package_dir={"": "src/python"},keywords="search embedding machine-learning nlp",- python_requires=">=3.6",+ python_requires=">=3.7",install_requires=install,extras_require=extras,classifiers=[