An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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 ?>
```