Skip to content

meaningalignment/values-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published