Skip to content

armgit / txtai

Public Imported from GitHub
0

๐Ÿ’ก All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Require Python 3.7, closes #175

davidmezzetti365f2ca0a747
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 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@v2
with:
- python-version: 3.6
+ python-version: 3.7
- uses: actions/setup-java@v1
with:
java-version: 1.8
@@ -25,7 +25,7 @@ jobs:
- name: Install dependencies - MacOS
run: brew install libomp
- if: matrix.os == 'macos-latest'
+ if: matrix.os == 'macos-11'
- name: Install dependencies - Windows
run: choco install wget
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 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@v2
with:
- 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 file
diff --git a/README.md b/README.md
index 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 PyPI
pip 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.md
index 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/huggingface
pip 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.Dockerfile
index 7649c89a..9adab8c5 100644
--- a/docker/api.Dockerfile
+++ b/docker/api.Dockerfile
@@ -11,17 +11,17 @@ EXPOSE 8000
# Install required packages
RUN 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 file
RUN echo "path: /txtai" > index.yml && \
diff --git a/docs/index.md b/docs/index.md
index 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.md
index 8a12458c..aa0acc90 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -4,7 +4,7 @@ The easiest way to install is via pip and PyPI
pip 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 source
diff --git a/examples/01_Introducing_txtai.ipynb b/examples/01_Introducing_txtai.ipynb
index 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.py
index 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=[