Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update README

davidmezzetti0c33995ecd3b
diff --git a/README.md b/README.md
index ece99b44..79634ee7 100644
--- a/README.md
+++ b/README.md
@@ -306,6 +306,22 @@ CONFIG=index.yml uvicorn "txtai.api:app"
uvicorn is a full-featured production ready server with support for SSL and more. See the [uvicorn deployment guide](https://www.uvicorn.org/deployment/) for details.
+#### Docker
+
+A Dockerfile with commands to install txtai, all dependencies and default configuration is available in this repository.
+
+The Dockerfile can be copied from the docker directory on GitHub locally. The following commands show how to run the API process.
+
+```bash
+docker build -t txtai.api -f docker/api.Dockerfile .
+docker run --name txtai.api -p 8000:8000 --rm -it txtai.api
+
+# Alternatively, if nvidia-docker is installed, the build will support GPU runtimes
+docker run --name txtai.api --runtime=nvidia -p 8000:8000 --rm -it txtai.api
+```
+
+This will bring up an API instance without having to install Python, txtai or any dependencies on your machine!
+
#### Differences between Python and API
The txtai API provides all the major functionality found in this project. But there are differences due to the nature of JSON and differences across the supported programming languages.