Created
April 29, 2023 03:47
-
-
Save sdan/9fd34bf561e98a798ec3ee55231bfb36 to your computer and use it in GitHub Desktop.
Running Chroma on Railway (no permanence)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Fork https://github.com/chroma-core/chroma ; for some reason you can't deploy images on Railway | |
Ensure you add PORT=8000 env var in Railway | |
2. Client side: | |
Railway doesn't allow HTTP connections so you'll need to open up SSL connections on the client side like so(for some reason this isn't properly documented): | |
# Set up ChromaDB client | |
client = chromadb.Client(Settings( | |
anonymized_telemetry=False, | |
chroma_api_impl="rest", | |
chroma_server_host=os.getenv("CHROMA_SERVER_HOST", "localhost"), | |
chroma_server_ssl_enabled=True, | |
chroma_server_http_port=443, | |
chroma_db_impl="duckdb+parquet", | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment