Skip to main content

Summarize and ask questions about items in the Internet Archive

Project description

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 and set it as an environment variable.

$ OPENAI_API_KEY="<APIKEY>" iacopilot
Enter quit   to quit/exit this REPL prompt
Enter help   to print the help message
Press <TAB>  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 <URL>                  Detect source and load the data as a context
 load ia <ITEM>              Load an IA item as a context
 load tv <CHANNEL> [<DATE>]  Load transcript of a TV channel as a context
 load wbm <URL> [<DATE>]     Load a Wayback Machine capture as a context
 load wiki <TITLE> [<LANG>]  Load a Wiki page as a context
 load file <PATH>            Load a loal file or directory as a context
 cd [<ID>]                   Change a loaded context to query
 rm [<ID>]                   Remove current or specified context
 reset                       Remove all contexts and reset statistics
 config openai [<KEY>]       Get or set configuration options
 <PROMPT>                    Ask the copilot questions about the context
 ! <CMD>                     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="<APIKEY>" iacopilot
Enter quit   to quit/exit this REPL prompt
Enter help   to print the help message
Press <TAB>  to see available commands
IACopilot 0:0 ?>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iacopilot-0.1.3b1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

iacopilot-0.1.3b1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file iacopilot-0.1.3b1.tar.gz.

File metadata

  • Download URL: iacopilot-0.1.3b1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for iacopilot-0.1.3b1.tar.gz
Algorithm Hash digest
SHA256 7af0f62d97da16b4e222e13eceecd99b39813b987baca698e381de216c8946f2
MD5 869b71c93c5e9afe6ba0ebb0e2fad867
BLAKE2b-256 28dbb3d7da446da855e89bef71435faabb001a52c1ed41a98e51d3f188f1e5ac

See more details on using hashes here.

File details

Details for the file iacopilot-0.1.3b1-py3-none-any.whl.

File metadata

  • Download URL: iacopilot-0.1.3b1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for iacopilot-0.1.3b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecd447f31d8121bc0772e14575b9443cabfaaba6f0e1b192d2338c11005febff
MD5 f5350f23bd274aa364989bc6f882ee5a
BLAKE2b-256 3e74aed146301ee1ace4bee0fd9354f12d39dd464cd637e392ddf44f3f5da062

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page