This is a repository for the rebuilding anew bots (bot-nim).
# Create a virtual environment
$ python3 -m venv venv
$ source venv/bin/activate
# Install the package
$ pip install -U -e .
$ botnim --help
.env.sample
: Sample environment file for the benchmarking scripts.botnim/
: Main package directory.__init__.py
: Package initialization file.cli.py
: Command line interface for the bots.sync.py
: Script for syncing the specifications with the OpenAI account.benchmark/
: Benchmarking scripts for the bots. Copy this file to.env
and fill in the necessary values.run-benchmark.py
: Main benchmarking script.
specs/
: Specifications for the bots.budgetkey/
: Specifications for the budgetkey bot.config.yaml
: Agent configuration file.agent.txt
: Agent instructions.
takanon/
: Specifications for the takanon bot.config.yaml
: Agent configuration file.agent.txt
: Agent instructions.extraction/
: Extracted and processed text from the Knesset Takanon
openapi/
: OpenAPI definitions of the BudgetKey (and other deprecated) APIs.
takanon_extractions/
: Code and extracted content from the Knesset Takanon and other laws.process_clauses.py
: Script to parse the Knesset Takanon HTML, extract the document structure, save it as JSON/YAML and Markdown files and then to split the JSON data into individual Markdown files for each clause.
ui/
: DEPRECATED: User interface for the bots.
- Edit the specifications in the
specs/
directory. - In case of changes to the vector stores, remove them in the OpenAI account playground. Either:
botnim sync {staging/production} {budgetkey/takanon}
to sync the specifications with the OpenAI account. Or- Commit the changes to the repository
- Run the 'Sync' action from the GitHub Actions tab.
Running the benchmark in production is best done using the action in the GitHub Actions tab.
For running locally:
botnim benchmarks {staging/production} {budgetkey/takanon} {TRUE/FALSE whether to save results locally}