llama stack vector_store operations in lightspeed. Enhancing URL fetc…#2742
llama stack vector_store operations in lightspeed. Enhancing URL fetc…#2742JslYoon wants to merge 6 commits intoredhat-developer:mainfrom
Conversation
…h securities. Update request/response schemas Signed-off-by: Lucas <lyoon@redhat.com>
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
Review Summary by QodoMigrate to lightspeed-core vector store proxy with security enhancements
WalkthroughsDescription• Migrate vector store operations from direct llama-stack to lightspeed-core proxy • Add security hardening with SSRF protection and prompt injection detection • Implement VectorStoresOperator HTTP client for lightspeed-core REST API • Refactor document service to use file upload API with streaming and size limits • Add comprehensive content sanitization for RAG security Diagramflowchart LR
A["Direct Llama Stack"] -->|"DEPRECATED"| B["Document Service"]
C["VectorStoresOperator"] -->|"HTTP Proxy"| D["Lightspeed-Core"]
D -->|"REST API"| E["Vector Stores"]
B -->|"REFACTORED"| C
F["Security Layer"] -->|"SSRF Check"| C
F -->|"Prompt Injection Filter"| C
G["File Upload"] -->|"Streaming"| C
File Changes1. workspaces/lightspeed/plugins/lightspeed-backend/__fixtures__/lightspeedCoreHandlers.ts
|
Code Review by Qodo
|
workspaces/lightspeed/plugins/lightspeed-backend/src/service/notebooks/notebooksRouters.ts
Show resolved
Hide resolved
workspaces/lightspeed/plugins/lightspeed-backend/src/service/notebooks/notebooksRouters.ts
Outdated
Show resolved
Hide resolved
...paces/lightspeed/plugins/lightspeed-backend/src/service/notebooks/sessions/sessionService.ts
Show resolved
Hide resolved
workspaces/lightspeed/plugins/lightspeed-backend/src/service/notebooks/VectorStoresOperator.ts
Show resolved
Hide resolved
Signed-off-by: Lucas <lyoon@redhat.com>
Signed-off-by: Lucas <lyoon@redhat.com>
Signed-off-by: Lucas <lyoon@redhat.com>
|


…h securities. Update request/response schemas
Hey, I just made a Pull Request!
✔️ Checklist