Spaces:
Runtime error
Runtime error
Download pipeline/query_handler.py from ShivanshCodex/Web_Scrapping_Agent: direct link, hf CLI and curl.
- Browser
- Download file 267 Bytes
-
https://huggingface.co/spaces/ShivanshCodex/Web_Scrapping_Agent/resolve/main/pipeline/query_handler.py
- Command line
-
hf download hf://spaces/ShivanshCodex/Web_Scrapping_Agent/pipeline/query_handler.py
-
curl -L -o query_handler.py https://huggingface.co/spaces/ShivanshCodex/Web_Scrapping_Agent/resolve/main/pipeline/query_handler.py
267 Bytes
| from agent.query_analyzer import QueryAnalyzer | |
| def analyze_query(user_query: str): | |
| analyzer = QueryAnalyzer() | |
| metadata = analyzer.analyze_query(user_query) | |
| keyword_chunks = metadata.get("KeywordChunks", [[user_query]]) | |
| return keyword_chunks | |