{"id":27933469,"url":"https://github.com/timescale/tsv-timemachine","last_synced_at":"2025-05-07T04:58:58.500Z","repository":{"id":207095956,"uuid":"718416840","full_name":"timescale/tsv-timemachine","owner":"timescale","description":"Sample application for time aware RAG with Streamlit, LlamaIndex and Timescale Vector. Learn more at https://www.timescale.com/ai","archived":false,"fork":false,"pushed_at":"2024-05-14T13:45:49.000Z","size":609,"stargazers_count":17,"open_issues_count":3,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T04:58:51.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timescale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-14T02:58:22.000Z","updated_at":"2025-01-15T08:30:22.000Z","dependencies_parsed_at":"2023-11-14T04:25:15.085Z","dependency_job_id":"e96f4ae2-32a8-4fdd-9762-d6d6e730d550","html_url":"https://github.com/timescale/tsv-timemachine","commit_stats":null,"previous_names":["timescale/tsv-timemachine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Ftsv-timemachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Ftsv-timemachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Ftsv-timemachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Ftsv-timemachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timescale","download_url":"https://codeload.github.com/timescale/tsv-timemachine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816948,"owners_count":21808704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T04:58:58.051Z","updated_at":"2025-05-07T04:58:58.493Z","avatar_url":"https://github.com/timescale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to the Timescale Vector Time Machine\nChat with the git history of any git repo.\n- Built with OpenAI, LlamaIndex, Streamlit and Timescale Vector.\n- TSV Time Machine is an example of time aware retrieval augmented generation. Time aware retrieval involves RAG with a retrieval step that searches for vectors that are semantically most similar to a user query and that also fall within a specified time range.\n- TSV Time Machine enables you to go back in time and chat with the commit history of any GitHub repository. Each Git commit entry has a timestamp associated with it, as well as a natural language message and other metadata (e.g author, commit, hash etc).\n\nSee a live demo of the app [here](https://pg-timemachine.streamlit.app/).\n- The demo is pre-loaded with the history from PostgreSQL. The demo disables loading data from other git repos. To load data, launch your own fork.\n\n## Get a free PostgreSQL vector database to use with this app\nSpin up a [free cloud PostgreSQL database](https://console.cloud.timescale.com/signup?utm_campaign=vectorlaunch\u0026utm_source=github\u0026utm_medium=direct) with Timescale Vector to use in this sample app. You'll get 90 days free by signing up with the link above.\n\n## Launching a fork.\nTo load data and try the demo on any other git repo, simply:\n1) Fork the repo \n2) Launch your own streamlit app. \n3) Set the following [streamlit secrets](https://docs.streamlit.io/streamlit-community-cloud/deploy-your-app/secrets-management): \n    - `OPENAI_API_KEY` - Your openAI key.\n    - `TIMESCALE_SERVICE_URL` - Your Timescale Service URL. Sign up for an account [here](https://www.timescale.com/ai).\n    - `ENABLE_LOAD=1` - Enables Loading Data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Ftsv-timemachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimescale%2Ftsv-timemachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Ftsv-timemachine/lists"}