Spaces:
Sleeping
Sleeping
Download server/src/models/multi_rag_models.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/src/models/multi_rag_models.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/server/src/models/multi_rag_models.py
-
curl -L -o multi_rag_models.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/src/models/multi_rag_models.py
803 Bytes
| from typing import Any, List, Literal | |
| from langgraph.graph.message import MessagesState | |
| from pydantic import BaseModel | |
| class State(MessagesState): | |
| vector_store_file_paths: List[str] | |
| require_db_search: bool | |
| queries: List[str] | |
| retreived_results: List[Any] | |
| refined_results: List[Any] | |
| relevance: Literal[ | |
| "CORRECT", | |
| "AMBIGUOUS", | |
| "INCORRECT" | |
| ] | |
| web_search_results: List[Any] | |
| docs_feed_to_llm: str | |
| ai_response: str | |
| class Orchastrator_output(BaseModel): | |
| require_db_search: bool | |
| class Query_generation_output(BaseModel): | |
| queries: List[str] | |
| class Relevance_output(BaseModel): | |
| relevance: Literal[ | |
| "CORRECT", | |
| "AMBIGUOUS", | |
| "INCORRECT" | |
| ] | |
| class WebSearchOutput(BaseModel): | |
| queries: List[str] |