Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 595 Bytes

File metadata and controls

11 lines (9 loc) · 595 Bytes

nlu_interface

This is designed to be a general library for managing a way to interface with different LLM providers (e.g., OpenAI, Anthropoc, local Ollama, etc.) and to organize resources/tools that go into different projects (e.g., prompts, configs, etc.).

Simple Example (OpenAI)

Note that the example config expects an API key to be stored in the environment variable $OPENAI_API_KEY.

To run a simple example for OpenAI, do the following:

cd nlu_interface/examples/
python test.py --config ../config/openai_config.yaml --prompt ../src/nlu_interface/resources/prompt.yaml