Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Published other packages as nlip-sdk and nlip-server

NLIP Server

This is a simple implementation of a NLIP Server written using fastapi in python

A sample chatbot solution is provided in soln directory

Installation

To set up this python project, create a virtual environment for python using the following commands (You can use your own environment name instead of using the provided name of env_server:

$ python -m venv env_server
$ source env_server/bin/activate

Next, install the required packages:

$ pip install -r requirements.txt

Now the python environment is setup and you can run the server

Running the chatbot server

Change to the directory soln/chat and invoke the following commands:

$ ./run_llama.sh 

or

$ ./run_mistral.sh 

This will start the fast api server with chat on one of the two LLM models.

Note: this solution assumes that you have an Ollama Server running at a server which needs to be configured. See the README.md in soln directory for more details.

Defining a new Solution

To define a new solution, you need to provide a subclass of NLIPApplicaiton which needs to define its specialized version of NLIPSession. Both NLIPApplication and NLIPSession are defined in module nlip.

The main routine of the solution should call the start_server routine in module server to create an instance of the solution server-side application.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlip-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlip-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file nlip-0.1.0.tar.gz.

File metadata

  • Download URL: nlip-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for nlip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c6d01c585d2a0ecdb8e6fa5906951567bd068fdd03c39ab3afce59fa9b6524b
MD5 33eab98648a31f947cfa72451dabd161
BLAKE2b-256 9dd7a3c255334340319c81b69cbe41728d971e49985d64faba4e32f5aed67331

See more details on using hashes here.

File details

Details for the file nlip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nlip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for nlip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70816b3902b9d5753278e69b1dd722c98d169fb82ab80d155bd7f020ca30d7d1
MD5 d8e69cf32f0b8505eaa8e3f240d93525
BLAKE2b-256 8c4ffeca860c29afa57511778afaf13f93c7e1c116a619bd797ac7dbc4f31f95

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page