feat: README.md
This commit is contained in:
parent
954cca14fa
commit
cd5057a466
|
|
@ -34,10 +34,10 @@ curl -H "Authorization: Bearer sk-local-827ccb0eea8a706c4c34a16891f84e7b" http:/
|
||||||
|
|
||||||
|
|
||||||
# embedding
|
# embedding
|
||||||
curl http://localhost:8023/embed \
|
curl http://localhost:8023/v1/embeddings \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: Bearer sk-local-827ccb0eea8a706c4c34a16891f84e7b" \
|
-H "Authorization: Bearer sk-local-827ccb0eea8a706c4c34a16891f84e7b" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"inputs": ["Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: What is the capital of China?", "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: Explain gravity"]}'
|
-d '{"input": ["Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: What is the capital of China?", "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: Explain gravity"]}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue