Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 719 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 719 Bytes

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