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/
- Click Create a new PAT
- Name the token, and pick the team scope
- Select an expiration date
- 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.2.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_stackoverflow-0.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1344f4e10256bc0cd6f62c055f83be805a9a1a47dc0c793bb6429d6037c333 |
|
MD5 | fc84b82674b386704aa08f46fc4bb007 |
|
BLAKE2b-256 | e7c6abede1a01cccc38263864ee677097a3469b807747c9bf1f9325a1a3fe136 |
File details
Details for the file llama_index_readers_stackoverflow-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_stackoverflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0404c993617ac590b5c27dc3f76c1b473bd44bef4a0ed207a208e694e110cdfc |
|
MD5 | e5b1069f32586885233e120d5a4c87ec |
|
BLAKE2b-256 | e1093e8a38ba963bfd522179a9dc1b1934e7ceda5fe6fecd06830df169fe1585 |