Spaces:
Sleeping
Sleeping
Download src/llm/llm_interface.py from abhinav393/agentic-rag: direct link, hf CLI and curl.
- Browser
- Download file 202 Bytes
-
https://huggingface.co/spaces/abhinav393/agentic-rag/resolve/main/src/llm/llm_interface.py
- Command line
-
hf download hf://spaces/abhinav393/agentic-rag/src/llm/llm_interface.py
-
curl -L -o llm_interface.py https://huggingface.co/spaces/abhinav393/agentic-rag/resolve/main/src/llm/llm_interface.py
202 Bytes
| import os | |
| from langchain_groq import ChatGroq | |
| llm_groq = ChatGroq( | |
| model="llama3-8b-8192", | |
| temperature=0.1, | |
| api_key=os.getenv("GROQ_API_KEY"), | |
| max_retries=3, | |
| streaming=True, | |
| ) | |