Michael Retchin
Michael Retchin
RRailway
Created by Michael Retchin on 10/17/2023 in #✋|help
Help deploying ChromaDB in production?
Hi everyone. I am new to this world. I'm an ML researcher, not a software engineer. I'm trying to figure out how to deploy ChromaDB on Railway and then use it interactively from somewhere else. But no matter what I try with TCP networking, I get the following error: ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) Code I'm using to connect on client side:
import chromadb
client = chromadb.HttpClient(
host='HOST_NAME_PROVIDED_BY_RAILWAY',
port='PORT_PROVIDED_BY_RAILWAY'
)
client.heartbeat()
import chromadb
client = chromadb.HttpClient(
host='HOST_NAME_PROVIDED_BY_RAILWAY',
port='PORT_PROVIDED_BY_RAILWAY'
)
client.heartbeat()
I also don't really understand how this whole internal private networking thing works. I'd like to create a system that can do private networking once I'm ready to move the entire app into the cloud. But I want to prototype on my local machine, so that leaves me with TCP. This is using the docker template: https://railway.app/template/tifygm The project ID: a141d396-2ac4-44e2-820c-06fd15fa7c8b Any help at all would be super appreciated. Thank you!
23 replies