https://github.com/internetarchive/iacopilot
Summarize and ask questions about items in the Internet Archive
https://github.com/internetarchive/iacopilot
cli copilot gpt iacopilot internet-archive python repl
Last synced: 17 days ago
JSON representation
Summarize and ask questions about items in the Internet Archive
- Host: GitHub
- URL: https://github.com/internetarchive/iacopilot
- Owner: internetarchive
- License: agpl-3.0
- Created: 2023-03-03T22:07:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T01:43:03.000Z (about 2 years ago)
- Last Synced: 2025-04-15T12:49:57.533Z (about 1 month ago)
- Topics: cli, copilot, gpt, iacopilot, internet-archive, python, repl
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 17
- Watchers: 14
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - internetarchive/iacopilot - Summarize and ask questions about items in the Internet Archive (Python)
README
# IA Copilot
Summarize and ask questions about items in the Internet Archive (and other textual resources) via GPT of OpenAI.
Install IACopilot CLI tool:
```
$ pip install iacopilot
```To run this tool, you will need [API key from OpenAI](https://platform.openai.com/account/api-keys) and set it as an environment variable.
```
$ OPENAI_API_KEY="" iacopilot
Enter quit to quit/exit this REPL prompt
Enter help to print the help message
Press to see available commands
IACopilot 0:0 ?>
``````
IACopilot 0:0 ?> help
help/h/? Print this help message
quit/exit/q Exit the REPL prompt
ls List all the loaded contexts
load Detect source and load the data as a context
load ia Load an IA item as a context
load tv [] Load transcript of a TV channel as a context
load wbm [] Load a Wayback Machine capture as a context
load wiki [] Load a Wiki page as a context
load file Load a loal file or directory as a context
cd [] Change a loaded context to query
rm [] Remove current or specified context
reset Remove all contexts and reset statistics
config openai [] Get or set configuration options
Ask the copilot questions about the context
! Run a system command
IACopilot 0:0 ?> quit
Exiting...
$
```Interact with the REPL!
Alternatively, run in Docker as following:
```
$ docker image build -t iacopilot .$ docker container run --rm -it -e OPENAI_API_KEY="" iacopilot
Enter quit to quit/exit this REPL prompt
Enter help to print the help message
Press to see available commands
IACopilot 0:0 ?>
```