Skip to content

Ashad001/golang-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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