Spaces:
Configuration error
Configuration error
Download test/test_llm.py from VuvanAn/MedLLM-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/VuvanAn/MedLLM-Assistant/resolve/main/test/test_llm.py
- Command line
-
hf download hf://spaces/VuvanAn/MedLLM-Assistant/test/test_llm.py
-
curl -L -o test_llm.py https://huggingface.co/spaces/VuvanAn/MedLLM-Assistant/resolve/main/test/test_llm.py
320 Bytes
| from ..rag_pipeline import ChatAssistant | |
| from ..rag_pipeline import request_retrieve_prompt | |
| cb = ChatAssistant("mistral-medium", "mistral") | |
| query = "Beta blocker for hypertension" | |
| query = request_retrieve_prompt.format(conversation=query, role="customer") | |
| response = cb.get_response(user=query) | |
| print(response) |