Backend upgrade: Stability & Firestore, Pinecone, Silero VAD & Docs#1981
Backend upgrade: Stability & Firestore, Pinecone, Silero VAD & Docs#1981skywinder wants to merge 26 commits intoBasedHardware:mainfrom
Conversation
- Update README.md with detailed instructions for setting up GitHub token - Improve GitHub API request handling in firmware and plugins utils - Add warning messages for missing GitHub token - Handle rate limit scenarios - Provide clearer guidance on optional GitHub token configuration
…hanism - Add SSL certificate verification bypass - Implement try-except block for model loading - Create mock VAD functions for graceful degradation - Handle potential model loading failures
- Include detailed steps for resolving Opus library installation issues - Add verification step to confirm successful library import
…dling - Implement conditional Typesense client initialization - Create mock Typesense client for development when configuration is missing - Update README.md with Typesense configuration instructions - Add warning message for unconfigured Typesense setup
- Provide setup instructions for Typesense Cloud and self-hosted environments - Clarify host, port, and API key configuration steps
- Implement direct model file download from GitHub repository - Add fallback mechanism for Silero VAD model loading - Handle potential download and loading errors
- Update model file download URL to latest repository location - Remove redundant file downloads for utils and example files - Streamline model file retrieval process
- handling of PyOgg import errors - Create mock OpusDecoder class for limited functionality - Update README with troubleshooting steps for PyOgg library
|
Hooray! I did it! 🎉 Finally, it’s up and running! 🙌 Hope this helps many others! @mdmohsin7 @thinhx I’d really appreciate a quick review. It has passed all the tests and checks. I managed to overcome 20+ errors, and it’s at least running for now. However, this is my first launch, so please take a look. Thanks! 🙏 |
|
Reviewing right now... |
ce5684e to
c36bdb7
Compare
|
lgtm, starts without issues, but ran into a windows-specific problem. |
I didn’t test it on Windows, to be honest—only on Mac. I just added the obvious path from the manuals, just in case. Better this than nothing! |
…her service to the max capacity
- Removed Google Cloud credentials configuration from docker-compose.yml - Updated README and Backend_Setup.mdx to reflect changes in credentials handling and installation instructions
Changed exposed port from 8080 to 8000 in Dockerfile and docker-compose.yml
|
|
||
| COPY --from=builder /opt/venv /opt/venv | ||
| COPY backend/ . | ||
| COPY . . |
There was a problem hiding this comment.
I think this will break the gcp deployment workflow (not really sure). @skywinder can you pls once cross check the dockerfile.datadog file and also the gcp_backend.yml file in .github/workflows (if you haven't already)
There was a problem hiding this comment.
GCP deployment workflow specifically uses Dockerfile.datadog, not the Dockerfile.
so the immediate changes to your regular Dockerfile won't directly break the GCP workflow.
So, gcp_backend.yml refer to dockerfile.datadog, which is not affected.
omi/.github/workflows/gcp_backend.yml
Lines 65 to 66 in 3eb8df8
It has 2 differences
-
Path: in Dockerfile vs Dockerfile.datadog: - since we are running it from
/backendfolder directly
Otherwise, we’ll have to move this Dockerfile to ../ to make it work, but I think the proper location is in the backend folder. -
Port: I set 8000 from backend readme and docs.
Lines 86 to 87 in 43508d6
I see that in Dockerfile.datadog it's 8080. Should I set it to 8080 in dev setup as well?
|
TL;DR: |
|
guys, feel free to discuss this one btw my tips are: keep the PR minimal and focused on single responsibility. getting this repo up and running is not that hard, but if it took too long for you, dm me discord / @thinh |
|
ping me after 2 weeks (or when you are ready for changes) / draft |
|
/ closed feel free to reopen it any time man. |
|
hey man, it's cleaning time. / closed
|


🚀 Backend Bootstrap Fixes & Improvements
This PR includes multiple fixes for backend initialization and configuration.
Each fix is in a separate commit for easier review.
🔧 Fixes & Enhancements
Fix Firestore client initialization with explicit project ID
4b30d81
Improve Pinecone vector database initialization with proper configuration handling
763c7bc
Add project ID handling for Google Cloud Storage client initialization
cbe4a95
Enhance GitHub API token handling and update documentation
715e091
Improve Silero VAD model loading with error handling and fallback
dd659bc
docs: Add troubleshooting section for Opus library issues
b8a5a3b
feat: Add Typesense mock client for development & improve configuration handling
5cdbd46
📖 Documentation Updates
dc0ee8c
🎤 Audio Processing Improvements
feat: Fix Silero VAD model download & loading mechanism
34650a8
fix: Update Silero VAD model download URL & simplify file retrieval
3ab94bd
feat: Add PyOgg error handling & fallback mechanism for Opus codec
ffd5e69
🐳 Docker Setup Now Works Out of the Box!
2d7942c
da4dbbb
🚀 How to Run
Local
Docker