Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Values Tools

Values Tools is a TypeScript library that provides a configurable interface for working with AI language models, with built-in caching functionality.

Features

  • Articulate values
  • Deduplicate values
  • Deduplicate contexts

Installation

npm install values-tools

Configuration

The Values Tools module can be configured using the configureValuesTools function. Here's an example of how to set up the configuration:

import { configureValuesTools, Cache } from 'values-tools';

const cache = new Cache('path/to/cache.sqlite');

configureValuesTools({
  defaultModel: 'claude-3-5-sonnet-20240620',
  defaultTemperature: 0.7,
  cache: cache
});

// You can now use any function with these default values.

Caching

The Values Tools module includes a caching mechanism to store and retrieve LLM results, which reduces API calls. The cache uses a SQLite database to store the data.

Prompt Generation

The system creates TypeScript variables from Markdown files in the prompts folder. It uses a build script to do this automatically. This makes the prompts easy to use in the code.

About

Tools for working with values cards and moral graphs.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages