Metadata-Version: 2.1
Name: nChain
Version: 0.12
Summary: nchain is a flexible and efficent framework to create LLM bots using embeddings over extensible dataset
License: Apache License
Author: James Liu
Author-email: james@bayjarvis.com
Requires-Python: >=3.10,<3.13
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: opensource
Provides-Extra: test
Requires-Dist: annoy (>=1.17.3,<2.0.0)
Requires-Dist: arxiv (>=1.4.8,<2.0.0)
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: faiss-gpu (>=1.7.2,<2.0.0)
Requires-Dist: lxml (>=4.9.2,<5.0.0)
Requires-Dist: nltk (>=3.5)
Requires-Dist: numpy (>=1.26.0,<2.0.0)
Requires-Dist: openai (>=0.27.5,<0.28.0)
Requires-Dist: pydantic (>=2.4.2,<3.0.0)
Requires-Dist: pypdf (>=3.11.0,<4.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: sentence-transformers (>=2.2.2,<3.0.0) ; extra == "opensource"
Requires-Dist: sqlite-utils (>=3.35.1,<4.0.0)
Description-Content-Type: text/markdown

# nChain

[![PyPI](https://img.shields.io/pypi/v/nChain.svg)](https://pypi.org/project/nChain/)
[![Changelog](https://img.shields.io/github/v/release/jamesliu/nChain?include_prereleases&label=changelog)](https://github.com/jamesliu/nChain/releases)
[![Tests](https://github.com/jamesliu/nChain/workflows/Test/badge.svg)](https://github.com/jamesliu/nChain/actions?query=workflow%3ATest)
[![Documentation Status](https://readthedocs.org/projects/nChain/badge/?version=stable)](http://nChain.readthedocs.org/en/stable/?badge=stable)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/jamesliu/nChain/blob/main/LICENSE)

nChain is a Python package that provides a flexible and efficient implementation to create LLM bots over extensible dataset. 

## Installation

You can install nChain directly from PyPI using pip:

```bash
pip install nChain
```

Alternatively, you can clone the repository and install from source:

```bash
git clone https://github.com/jamesliu/nChain.git
cd nChain
pip install .
```

## Usage

Here are examples of how to use nChain to search ArXiv paper using embedding.

```bash
nchain add https://arxiv.org/abs/1409.0473
nchain add https://arxiv.org/abs/2010.14701
nchain add https://arxiv.org/abs/2203.02155
nchain add https://arxiv.org/abs/2302.01318v1
nchain add https://arxiv.org/abs/2309.17453
nchain add https://arxiv.org/abs/2310.02304

nchain query "Show me the Scaling Laws for Autoregressive Generative Modeling."
nchain query "Show me the algorithm about Large Lanuage Model Decoding with Speculative Sampling."
nchain query "How to handle streaming apps efficiently in LLM?"
```

## Documentation

Full documentation is available [here](https://nchain.readthedocs.io/en/latest/).

## Contributing

We welcome contributions to nChain! If you're interested in contributing, please see our [contribution guidelines](./CONTRIBUTING.md) and [code of conduct](./CODE_OF_CONDUCT.md).

## License

nChain is licensed under the Apache License 2.0. See the [LICENSE](./LICENSE) file for more details.

## Support

For support, questions, or feature requests, please open an issue on our [GitHub repository](https://github.com/jamesliu/nChain/issues) or contact the maintainers.

## Changelog

See the [releases](https://github.com/jamesliu/nChain/releases) page for a detailed changelog of each version.



