Comments (5)
Success! Thanks!
from langchain-serve.
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.
@deepankarm
Tks!
I wrote the script based on this tutorial. I performed the following steps:
- pip install langchain-serve
- lc-serve deploy local jina_serving
- 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.
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.
Ok, I will try it now and have a conclusion to communicate with you here! Thanks!
from langchain-serve.
Related Issues (20)
- Files within deployment directory are not found in cloud HOT 1
- lc-serve app updates fail for apps running for >7days HOT 1
- my streaming_handler is None HOT 3
- not found Interact, ServeHTTP HOT 1
- `@serving` functions in separate files HOT 2
- Flag to disable `std*` fields in the responses HOT 1
- cant download the files in workplace with the mention command HOT 1
- lc-serve deploy local - Doesn't work on Windows 10 HOT 2
- Please report this session_id: [yellow bold]b92d8056-2ea1-11ee-a95a-acde48001122[/] HOT 1
- slackbot-demo issue and local deploy issue on Mac M1 HOT 3
- ImportError: cannot import name 'StructuredTool' from 'langchain.tools' HOT 3
- Cannot install jina because these package versions have conflicting dependencies HOT 3
- Push Gateway as private
- [Feature Request] HuggingFace Agents as a service HOT 4
- Is there any support for Data persistence? HOT 6
- Cannot debug running process with PyCharm HOT 2
- [Feature/Doc request] Please add an example for the chatbot use case
- [Bug] Calling a langchain function in a separate util file causes "Error: maximum recursion depth exceeded" HOT 3
- lc-serve command not found HOT 6
- Unable to import app.py: Instance and class checks can only be used with @runtime_checkable protocols HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-serve.