https://github.com/timescale/githistoryloader
Load git commit history into a TS embeddings table
https://github.com/timescale/githistoryloader
Last synced: 3 months ago
JSON representation
Load git commit history into a TS embeddings table
- Host: GitHub
- URL: https://github.com/timescale/githistoryloader
- Owner: timescale
- Created: 2023-10-02T03:34:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-05T06:23:32.000Z (over 2 years ago)
- Last Synced: 2025-05-07T04:58:55.462Z (8 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# githistoryloader
Load git commit history into a TS embeddings table
## Usage
```
from tsgitloader import load_git_history, read_catalog_info
from dotenv import load_dotenv, find_dotenv
# set os.environ["TIMESCALE_SERVICE_URL"] and os.environ['OPENAI_API_KEY'] from the .env file
_ = load_dotenv(find_dotenv())
load_git_history("https://github.com/timescale/timescaledb", "main", "llamaindex")
load_git_history("https://github.com/timescale/timescaledb", "main", "langchain")
print(read_catalog_info("llamaindex"))
print(read_catalog_info("langchain"))
```