cohere-ai / cohere-toolkit

Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
MIT License
2.77k stars 354 forks source link

Does not work in Codespaces #169

Closed altomani closed 3 months ago

altomani commented 3 months ago

What is the issue?

I tried running the demo in Codespaces, using make first-run.

The first problem is that it tries to install a lot of packages related to community deploaments and tools. I could fix it with the steps described in: https://github.com/cohere-ai/cohere-toolkit/issues/159#issuecomment-2147096414

After that, the toolkit starts and the web interface loads, but it cannot connect to the backend. The deployment and model choice dropdowns are empty, the diagnostic panel shows pending queries.

I suspect that this is due to Codespaces / dev-containers limiting communication between different services, see e.g. https://code.visualstudio.com/docs/devcontainers/create-dev-container#_use-docker-compose , but I could not figure out how to fix it.

Additional information

No response

BeatrixCohere commented 3 months ago

Hi, thank you for trying out the toolkit. I was just able to get it working on codespaces with these steps:

Now, the front end should be able to call the back end. Hope this works for you.

BeatrixCohere commented 3 months ago

Let me know if you still have issues after these steps, closing for now.

altomani commented 3 months ago

Thanks, it worked!