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.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c82cf73ff800f4faf9eebde0ae62930734debb755a73c7ca459150594135a082
MD5 f4b47de1a2a6f02253427673fe637a15
BLAKE2b-256 15271471bd93abb3b5acad04e3e91a9c760a967c97d41512a0492c5b177b892f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_stackoverflow-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a136b6db59cd1a3dd199b21140e0757b2e2a8df7f37d162556f2a1d2e2991e6
MD5 66cb105b5d30e17d2fdd8a0bd0301c79
BLAKE2b-256 ad81aaf4298f13c40578289344e80f3f52141bf53f333e40b3c1681c8a1b95c5

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