Skip to main content

Natural Language Interaction Protocol

Reason this release was yanked:

Published other packages as nlip-sdk and nlip-server

Project description

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.

Project details


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

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.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page