Skip to content

Conversation

@pratibha1304
Copy link

This PR modernizes the entire b0bot stack to resolve critical API failures and dependency conflicts found in the current main branch.

The Problems Solved:
API Failure: The old huggingface_hub version was trying to access api-inference.huggingface.co, which returned a 410 Gone error (deprecated API).
Database Crash: The code was using dictionary syntax (.get()) for Pinecone responses, but the new Pinecone v6 client returns Objects, causing crash loops.
Dependency Hell: langchain-classic and other outdated packages were causing version locks that prevented installing modern tools.

The Fixes:
Upgraded Stack: Bumped langchain and huggingface_hub to latest stable versions.
Refactored Service: Rewrote NewsService.py to use LCEL (Pipe syntax |) instead of the deprecated LLMChain.
Fixed Model: Updated NewsModel.py to use object dot-notation for vector metadata access.
Verified: Tested locally with the Mistral route; successfully retrieved and summarized news.

@pratibha1304
Copy link
Author

Hi maintainers!
Just bumping this as the current main branch is hitting API 410 errors with the old HuggingFace stack.

This PR refactors the stack to 2025 standards (LangChain 0.3 + Pinecone v6) and restores full functionality. I've verified it locally. Happy to resolve any merge conflicts if they arise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant