Published April 21, 2024
| Version v0.0.2
Software
Open
Libr-AI/OpenFactVerification: v0.0.2
- 1. @Libr-AI
- 2. @biocad
- 3. Oracle
Description
New Features
- API Key Handling: Transitioned from creating key files via copying to dynamically reading all API keys from a YAML file, streamlining configuration processes.
- Unified Configuration Dictionary: Replaced platform-specific dictionaries with a unified dictionary that aligns with environmental variable naming conventions, enhancing consistency and maintainability.
- Model Switching: Introduced a
--model
parameter that allows switching between different models, currently supporting OpenAI and Anthropic. - Modular Architecture: Restructured the codebase into one Base class file and individual class files for each model, enhancing modularity and clarity.
- Base Class Redefinition: Redefined the Base class to abstract asynchronous operations and other functionalities. Users customizing models need only override three functions.
- Prompt Switching: Added a
--prompt
parameter for switching between predefined prompts, initially supporting prompts for OpenAI and Anthropic. - Prompt Definitions via YAML and JSON: Enabled prompt definitions using YAML and JSON, allowing prompts to be automatically read from corresponding YAML or JSON files when the prompt parameter ends with
.yaml
or.json
. - Search Engine Switching: Introduced a
--retriever
parameter to switch between different search engines, currently supporting Serper and Google. - Webapp Frontend Optimization: Optimized the web application frontend to prevent duplicate requests during processing, including disabling the submit button after a click and displaying a timer during processing.
- Client Switching: introduce a
--client
parameter that allows switching between different client (chat API), currently support OpenAI compatible API (for local model and official model), and Anthropic chat API client.
Docs
- Init Docs
Files
Libr-AI/OpenFactVerification-v0.0.2.zip
Files
(42.5 MB)
Name | Size | Download all |
---|---|---|
md5:6b675b2ce53673af0065f777cd8c7e83
|
42.5 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/Libr-AI/OpenFactVerification/tree/v0.0.2 (URL)