{"id":21822153,"url":"https://github.com/stylepatrick/custom-data-openai-rest-api","last_synced_at":"2026-04-19T14:05:25.897Z","repository":{"id":192147257,"uuid":"686140177","full_name":"stylepatrick/custom-data-openai-rest-api","owner":"stylepatrick","description":"OpenAI linked with custom data and REST API for questions","archived":false,"fork":false,"pushed_at":"2023-09-01T21:31:03.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T03:41:16.970Z","etag":null,"topics":["artificial-intelligence","custom-data","fastapi","langchain","openai","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stylepatrick.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-01T21:06:12.000Z","updated_at":"2023-09-01T21:33:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca1afce4-5fb8-480c-8c7d-7654f3deb72d","html_url":"https://github.com/stylepatrick/custom-data-openai-rest-api","commit_stats":null,"previous_names":["stylepatrick/custom-data-openai-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stylepatrick/custom-data-openai-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fcustom-data-openai-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fcustom-data-openai-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fcustom-data-openai-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fcustom-data-openai-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylepatrick","download_url":"https://codeload.github.com/stylepatrick/custom-data-openai-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylepatrick%2Fcustom-data-openai-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["artificial-intelligence","custom-data","fastapi","langchain","openai","rest-api"],"created_at":"2024-11-27T17:13:21.680Z","updated_at":"2026-04-19T14:05:25.878Z","avatar_url":"https://github.com/stylepatrick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-data-openai-rest-api\nOpenAI linked with custom data provided in the /data folder and REST API for questions\n\nInstallation:\n`pip install langchain openai chromadb tiktoken unstructured`\n\n### API:\nPOST: http://127.0.0.1:8000/question\n\n### Examples:\nCustom Data:\n```\nI was born in Italy on May 1996\nI have two sisters and one brother\n```\n\n## Question 1:\nQuestion:\n```\n{\n    \"text\": \"Where was i born?\"\n}\n```\nAnswer:\n```\n{\n    \"text\": \"I was born in Italy.\"\n}\n```\n\n## Question 2:\nQuestion:\n```\n{\n    \"text\": \"How much sisters do i have?\"\n}\n```\nAnswer:\n```\n{\n    \"text\": \"Based on the given information, you have two sisters.\"\n}\n```\n\n## Question 3:\nQuestion:\n```\n{\n    \"text\": \"Who is Obama?\"\n}\n```\nAnswer:\n```\n{\n    \"text\": \"Barack Obama is an American politician who served as the 44th President of the United States from 2009 to 2017. He is not related to the context given.\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylepatrick%2Fcustom-data-openai-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylepatrick%2Fcustom-data-openai-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylepatrick%2Fcustom-data-openai-rest-api/lists"}