Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Feature/try rst cleanup (#118)
Browse files Browse the repository at this point in the history
* last doc cleanups

* cleanup and ready for release
  • Loading branch information
emrgnt-cmplxty authored Oct 31, 2023
1 parent 2706bd4 commit bf36c4d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 39 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,6 @@ Note: The same dependencies available with pip installation are also available h
- `accelerate`: `^0.23.0`
- `datasets`: `^2.14.5`
- `transformers`: `^4.33.1`
- **Llama-Index**:
- `llama-index`: `^0.8.29.post1`
- **Llama-CPP**:
- `llama-cpp-python`: `^0.2.11`
- **VLLM Tools**:
- `vllm`: `0.2.0`
---
Expand Down
65 changes: 32 additions & 33 deletions docs/source/api/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Search Endpoint

- **URL**: ``/search``
- **Method**: ``POST``
- **Description**: This endpoint interacts with the Retriever module of the SciPhi codebase, allowing you to search for related documents based on the provided queries.
- **Description**: This endpoint interacts with the Retriever module of the SciPhi-Infra codebase, allowing you to search for related documents based on the provided queries.

**Request Body**:
- ``queries``: A list of query strings for which related documents should be retrieved.
Expand All @@ -35,7 +35,7 @@ A list of lists containing Document objects, where each list corresponds to the
-H "Content-Type: application/json" \
-d '{"queries": ["What is general relativity?", "Who is Albert Einstein?"], "top_k": 5}'
This request queries the SciPhi World Database. The expected response is:
The expected response is:

.. code-block:: none
Expand All @@ -51,42 +51,41 @@ SciPhi adheres to the API specification of OpenAI's API, allowing compatibility

.. code-block:: bash
curl https://api.sciphi.ai/v1/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer 55c51253002ed4f7d1dd3afbe2a72635" \
-d '{
"model": "SciPhi/SciPhi-Self-RAG-Mistral-7B-32k",
"prompt": "Say this is a test.",
"temperature": 0.7
}'
curl https://api.sciphi.ai/v1/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SCIPHI_API_KEY" \
-d '{
"model": "SciPhi/SciPhi-Self-RAG-Mistral-7B-32k",
"prompt": "Say this is a test.",
"temperature": 0.7
}'

After executing the above request with the SciPhi/SciPhi-Self-RAG-Mistral-7B-32k model, the expected response is:
The expected response is:

.. code-block:: json
{
"id":"cmpl-f03f53c15a174ffe89bdfc83507de7a9",
"object":"text_completion",
"created":1698730137,
"model":"SciPhi/SciPhi-Self-RAG-Mistral-7B-32k",
"choices":[
{
"index":0,
"text":"This is a test.",
"logprobs":null,
"finish_reason":"length"
}
],
"usage":
{
"prompt_tokens":7,
"total_tokens":23,
"completion_tokens":16
}
} (base) ocolegrove@MacBook-Pro-5 sciphi-core %
{
"id":"cmpl-f03f53c15a174ffe89bdfc83507de7a9",
"object":"text_completion",
"created":1698730137,
"model":"SciPhi/SciPhi-Self-RAG-Mistral-7B-32k",
"choices":[
{
"index":0,
"text":"This is a test.",
"logprobs":null,
"finish_reason":"length"
}
],
"usage":
{
"prompt_tokens":7,
"total_tokens":15,
"completion_tokens":8
}
}
API Key and Signup
------------------

To access the SciPhi API, you need an API key. If you don't possess one, you can sign up `here <https://www.sciphi.ai/signup>`_. Ensure you include the API key in your request headers as shown in the examples.
To access the SciPhi API, you need an API key. If you don't possess one, you can sign up `here <https://www.sciphi.ai/signup>`_. Ensure you include the API key in your request headers as shown in the examples.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SciPhi is a powerful knowledge engine tailored for LLM-based inference, data gen

With SciPhi, you can:

* Tap into the **Retriever-Augmented Generation (RAG)** for data anchoring to real-world sources.
* Leverage **Retriever-Augmented Generation (RAG)** for better accuracy and efficiency.
- Features like end-to-end cloud and local RAG knowledge engine APIs are underway!
* Generate truthful datasets using various LLMs, supporting **Anthropic**, **OpenAI**, **vLLM**, and **SciPhi**.
* Custom tailor your data creation for applications such as LLM training, RAG, and beyond.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ write_to = "sciphi/_version.py"

[tool.poetry]
name = "sciphi"
version = "0.1.6"
version = "0.1.7"
description = "SciPhi: A Framework for LLM Powered Data."
authors = ["Owen Colegrove <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit bf36c4d

Please sign in to comment.