Skip to main content

llama-index readers stackoverflow integration

Project description

StackoverflowReader (In Beta)

Using the Stackoverflow API, this class will read the Stackoverflow Teams API and return a list of questions and answers based on posts.

It also supports caching the results to a local directory, so that you can run the load_data() method multiple times without hitting the API.

getting a token

Visit: https://stackoverflowteams.com/users/pats/

  1. Click Create a new PAT
  2. Name the token, and pick the team scope
  3. Select an expiration date
  4. Click Create

Add this to your env, or to the instantiation of the StackoverflowReader(pa_token, team_name, cache_dir='./stackoverflow_cache')

export STACKOVERFLOW_PAT=your_token
export STACKOVERFLOW_TEAM_NAME=your_team

Other features which could be added:

  • Add articles
  • Add comments
  • Add tags
  • Add users
  • Add votes
  • Add badges

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

Built Distribution

File details

Details for the file llama_index_readers_stackoverflow-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40ef9cf746f27f91d9e42f54096798dad30b9a5bda15e46dce37214abe214f4c
MD5 411e47db95c44ee137cbd1d3806a5243
BLAKE2b-256 44b4f0a7585dbe99f2f025c78c4d930c2915f5b4430e78a16d987ba82b727b19

See more details on using hashes here.

File details

Details for the file llama_index_readers_stackoverflow-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4140bdae94c5fd858d0aee4d3b3e838ae30e58613177c9f4a9101fc43a27ecbc
MD5 007bfe7e6b26a89e01ec75c8845565a7
BLAKE2b-256 27a403224559a707fa39a248aae572e231495a64c71f763903b89cf0c33c27c7

See more details on using hashes here.

Supported by

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