# LangchainBack

Here lives the code for the backend application on the langchain, which allows you to leave the way of interaction the same as it was in TrustLLM.

## Run backend
1) ```screen -S langchain_back```
2) ```source .venv/bin/activate```
3) ```python main.py```
4) ```screen -r langchain_back```

## Check:
The service can be started run main.py
After the launch, you can send a test request.
```curl -X POST "http://localhost:45321/generate" -H "Content-Type: application/json" -d '{"model": "qwen2.5:72b-instruct-q4_0", "prompt": "Translate this to Russian: Hello", "variables": {}}'```
