/golang-chain

Basic api to chat with llama3 using groq

Primary LanguageGoMIT LicenseMIT

Go LangChain API

This is a Go-based API deployed on Hugging Face Spaces.

How to Use

  • Send a POST request to /chat/ with the user query.

Example System Prompt

{
  "prompt": "
  Your answer should only be in JSON format with this format instruction and nothing else:
  {
    \"score\": <int>, 
    \"description\": \"<string>\",
    \"messages\": [
      {
        \"role\": \"<string>\",
        \"content\": \"<string>\"
      }
    ]
  }
}

NOTE: You have to make sure user query is related to the prompt too for good results s