# Deploying to Render
## Removing Unused Dependencies
Before deploying your app, you might want to remove unused dependencies from your
[[Link]](/[Link]) file to reduce the size of your app and improve
its performance. Depending on the vector database provider you choose, you can
remove the packages that are not needed for your specific provider.
Find the packages you can remove for each vector database provider [here](removing-
[Link]).
After removing the unnecessary packages from the `[Link]` file, you don't
need to run `poetry lock` and `poetry install` manually. The provided Dockerfile
takes care of installing the required dependencies using the `[Link]`
file generated by the `poetry export` command.
## Deployment
Render maintains a [fork]([Link]
plugin/) of this repository with a few small changes that facilitate easy
deployment. The source code is unchanged. To deploy both the Docker container from
this repository and a self-hosted Weaviate database to back it, just click the
button below. Enter your OpenAI API key when prompted.
[<img src="[Link] alt="Deploy to
Render" />]([Link]
chatgpt-retrieval-plugin/tree/main)
The bearer token will be randomly generated for you. You can view it in in the
"Environment" tab on the [Render dashboard]([Link] page for
your server. For more guidance, consult the [README in Render's
fork]([Link]
[Link]), [Render's documentation]([Link] or the screen
recording linked below.
[]([Link]
Removing Unused Dependencies
Before deploying your app, you might want to remove unused dependencies from your
[Link] file to reduce the size of your app and improve its performance.
Depending on the vector database provider you choose, you can remove the packages
that are not needed for your specific provider.
Here are the packages you can remove for each vector database provider:
Pinecone: Remove weaviate-client, pymilvus, qdrant-client, redis, chromadb, llama-
index, azure-identity, azure-search-documents, supabase, psycopg2+pgvector, and
psycopg2cffi.
Weaviate: Remove pinecone-client, pymilvus, qdrant-client, redis, chromadb, llama-
index, azure-identity and azure-search-documents, supabase, psycopg2+pgvector,
psycopg2cffi.
Zilliz: Remove pinecone-client, weaviate-client, qdrant-client, redis, chromadb,
llama-index, azure-identity and azure-search-documents, supabase,
psycopg2+pgvector, and psycopg2cffi.
Milvus: Remove pinecone-client, weaviate-client, qdrant-client, redis, chromadb,
llama-index, azure-identity and azure-search-documents, supabase,
psycopg2+pgvector, and psycopg2cffi.
Qdrant: Remove pinecone-client, weaviate-client, pymilvus, redis, chromadb, llama-
index, azure-identity and azure-search-documents, supabase, psycopg2+pgvector, and
psycopg2cffi.
Redis: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client, chromadb,
llama-index, azure-identity and azure-search-documents, supabase,
psycopg2+pgvector, and psycopg2cffi.
LlamaIndex: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client,
chromadb, redis, azure-identity and azure-search-documents, supabase,
psycopg2+pgvector, and psycopg2cffi.
Chroma:: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client, llama-
index, redis, azure-identity and azure-search-documents, supabase,
psycopg2+pgvector, and psycopg2cffi.
Azure Cognitive Search: Remove pinecone-client, weaviate-client, pymilvus, qdrant-
client, llama-index, redis and chromadb, supabase, psycopg2+pgvector, and
psycopg2cffi.
Supabase: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client, redis,
llama-index, azure-identity and azure-search-documents, psycopg2+pgvector, and
psycopg2cffi.
Postgres: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client, redis,
llama-index, azure-identity and azure-search-documents, supabase, and psycopg2cffi.
AnalyticDB: Remove pinecone-client, weaviate-client, pymilvus, qdrant-client,
redis, llama-index, azure-identity and azure-search-documents, supabase, and
psycopg2+pgvector.
After removing the unnecessary packages from the [Link] file, you don't
need to run poetry lock and poetry install manually. The provided Dockerfile takes
care of installing the required dependencies using the [Link] file
generated by the poetry export command.
```