{"id":27701652,"url":"https://github.com/different-ai/embedbase-siri-gpt4-paul-graham","last_synced_at":"2025-04-25T20:13:06.108Z","repository":{"id":71557618,"uuid":"597121667","full_name":"different-ai/embedbase-siri-gpt4-paul-graham","owner":"different-ai","description":"Ask question to Siri about Paul Graham essays using Embedbase and GPT4","archived":false,"fork":false,"pushed_at":"2023-03-08T15:01:54.000Z","size":98,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T20:13:01.128Z","etag":null,"topics":["ai","embeddings","machine-learning","semantic-search"],"latest_commit_sha":null,"homepage":"https://hackernoon.com/building-an-embeddings-powered-product-to-search-paul-graham-essays-using-siri","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/different-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-02-03T17:16:42.000Z","updated_at":"2023-06-03T07:14:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1f9d4c4-0b2b-4ded-ba27-2b3a0491499e","html_url":"https://github.com/different-ai/embedbase-siri-gpt4-paul-graham","commit_stats":null,"previous_names":["different-ai/embedbase-siri-gpt4-paul-graham"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/different-ai%2Fembedbase-siri-gpt4-paul-graham","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/different-ai%2Fembedbase-siri-gpt4-paul-graham/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/different-ai%2Fembedbase-siri-gpt4-paul-graham/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/different-ai%2Fembedbase-siri-gpt4-paul-graham/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/different-ai","download_url":"https://codeload.github.com/different-ai/embedbase-siri-gpt4-paul-graham/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250887512,"owners_count":21503033,"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":["ai","embeddings","machine-learning","semantic-search"],"created_at":"2025-04-25T20:13:05.599Z","updated_at":"2025-04-25T20:13:06.103Z","avatar_url":"https://github.com/different-ai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embedbase-paul-graham\n\nThis is an example of how to use [Embedbase](https://github.com/another-ai/embedbase) to build a search engine in a few lines of code for [Paul Graham's essays](http://www.paulgraham.com/articles.html) through Apple's Siri shortcut.\n\nThis repository goes in pair with this [blog post](https://hackernoon.com/building-an-embeddings-powered-product-to-search-paul-graham-essays-using-siri).\n\n\n## Demo\n\nIf you just want to try the end result, you can use the sandboxed version of the index with this [Apple Siri Shortcut](https://www.icloud.com/shortcuts/70b62f88a59643bbad8ef9cb3483533f):\n\n\nhttps://user-images.githubusercontent.com/25003283/216767004-3e0898e5-627b-4f15-85b1-1f05ed666ccf.mp4\n\n\n\nOr in the terminal:\n\n```bash\ngit clone https://github.com/another-ai/embedbase-paul-graham\ncd embedbase-paul-graham\nnpm i\nnpm run playground https://embedbase-paul-graham-c6txy76x2q-uc.a.run.app\n```\n\n## Quickstart\n\n\n```bash\ngit clone https://github.com/another-ai/embedbase\ncd embedbase\n```\n\n```yaml\n# embedbase/config.yaml\n# https://app.pinecone.io/\npinecone_index: \"my index name\"\n# replace this with your environment\npinecone_environment: \"us-east1-gcp\"\npinecone_api_key: \"\"\n\n# https://platform.openai.com/account/api-keys\nopenai_api_key: \"sk-xxxxxxx\"\n# https://platform.openai.com/account/org-settings\nopenai_organization: \"org-xxxxx\"\n```\n\n```bash\ndocker-compose up\n```\n\nIn another terminal:\n\n```bash\ngit clone https://github.com/another-ai/embedbase-paul-graham\ncd embedbase-paul-graham\nnpm i\nnpm start\n```\n\n## Stack\n\n- [Embedbase](https://github.com/another-ai/embedbase)\n- Typescript\n- [Crawlee + Playwright crawler](https://crawlee.dev/docs/examples/playwright-crawler)\n- [Google Cloud Run](https://cloud.google.com/run) for deployment\n- [Apple Siri Shortcuts](https://www.icloud.com/shortcuts/70b62f88a59643bbad8ef9cb3483533f) for querying the index\n\n## Deploy\n\n## Cloud Run deployment\n\n[Don’t want to handle infra? We’re launching a hosted version soon. Just click here to be first to know when it comes out](https://embedbase.anotherai.co).\n\n### Setup\n\n```bash\n# login to gcloud\ngcloud auth login\n\nPROJECT_ID=$(gcloud config get-value project)\n\n# Enable container registry\ngcloud services enable containerregistry.googleapis.com\n\n# Enable Cloud Run\ngcloud services enable run.googleapis.com\n\n# Enable Secret Manager\ngcloud services enable secretmanager.googleapis.com\n\n# create a secret for the config\ngcloud secrets create EMBEDBASE_PAUL_GRAHAM --replication-policy=automatic\n\n# add a secret version based on your yaml config\ngcloud secrets versions add EMBEDBASE_PAUL_GRAHAM --data-file=config.yaml\n\nIMAGE_URL=\"gcr.io/${PROJECT_ID}/embedbase-paul-graham:0.0.1\"\n\ndocker buildx build . --platform linux/amd64 -t ${IMAGE_URL} -f ./search/Dockerfile\n\ndocker push ${IMAGE_URL}\n\ngcloud run deploy embedbase-paul-graham \\\n  --image ${IMAGE_URL} \\\n  --region us-central1 \\\n  --allow-unauthenticated \\\n  --set-secrets /secrets/config.yaml=EMBEDBASE_PAUL_GRAHAM:1\n\n# getting cloud run url\ngcloud run services list --platform managed --region us-central1 --format=\"value(status.url)\" --filter=\"metadata.name=embedbase-paul-graham\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferent-ai%2Fembedbase-siri-gpt4-paul-graham","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifferent-ai%2Fembedbase-siri-gpt4-paul-graham","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferent-ai%2Fembedbase-siri-gpt4-paul-graham/lists"}