GithubHelp home page GithubHelp logo

Comments (5)

thomas-yanxin avatar thomas-yanxin commented on August 11, 2024 1

Success! Thanks!

from langchain-serve.

deepankarm avatar deepankarm commented on August 11, 2024

Hi @thomas-yanxin, thanks for trying lcserve. Could you please give us the steps to run the lc-serve command ourselves and please copy paste the curl command in a code format.

from langchain-serve.

thomas-yanxin avatar thomas-yanxin commented on August 11, 2024

@deepankarm
Tks!
I wrote the script based on this tutorial. I performed the following steps:

  1. pip install langchain-serve
  2. lc-serve deploy local jina_serving
  3. run the curl command:
    1).
curl -X 'POST' \
  'http://120.237.18.56:8080/reinit_model' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "large_language_model": "ChatGLM-6B-int8",
  "embedding_model": "text2vec-base",
}' 

This command was executed successfully!
2)

curl -X 'POST' \
  'http://localhost:8080/predict' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": "ChatGLM-6B的具体局限性?",
  " file_path": "./README.md",
   "use_web": True,
   "top_k": 3,
   "history_len": 1,
   "temperature": 0.01,
   "top_p": 0.1,
   "history": []
}'

but this didn't, and the above error appears.

from langchain-serve.

deepankarm avatar deepankarm commented on August 11, 2024

Can you please change True to true and retry?

curl -X 'POST' \
  'http://localhost:8080/predict' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": "ChatGLM-6B的具体局限性?",
  " file_path": "./README.md",
   "use_web": true,
   "top_k": 3,
   "history_len": 1,
   "temperature": 0.01,
   "top_p": 0.1,
   "history": []
}'

from langchain-serve.

thomas-yanxin avatar thomas-yanxin commented on August 11, 2024

Ok, I will try it now and have a conclusion to communicate with you here! Thanks!

from langchain-serve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.