├── .changeset ├── README.md └── config.json ├── .envrc ├── .eslintrc.cjs ├── .github └── workflows │ ├── main.yml │ └── pr.yml ├── .gitignore ├── .gitpod.yml ├── .vscode ├── settings.json └── tasks.json ├── LICENSE ├── README.md ├── docker-compose.yml ├── effect.md ├── fixtures └── effect.md ├── flake.lock ├── flake.nix ├── infra ├── grafana │ ├── dashboards.yaml │ ├── dashboards │ │ └── dashboard.json │ ├── datasources.yaml │ └── grafana.ini ├── prometheus │ └── prometheus.yaml └── tempo │ └── tempo.yaml ├── package.json ├── pnpm-lock.yaml ├── scripts ├── version.mjs └── version.template.txt ├── src ├── AIContext.ts ├── Cli.ts ├── Completions.ts ├── DocumentChunker.ts ├── Embeddings.ts ├── OpenAI.ts ├── RateLimiter.ts ├── bin.ts ├── domain │ ├── AbsolutePath.ts │ ├── CompletionRequest.ts │ ├── Document.ts │ ├── DocumentChunk.ts │ └── DocumentChunkRepository.ts ├── internal │ └── version.ts └── migrations │ ├── 00001_create_document_chunks.ts │ ├── 00002_document_chunk_unique_index.ts │ ├── 00003_create_vss_chunks.ts │ └── _schema.sql ├── tsconfig.base.json ├── tsconfig.build.json ├── tsconfig.json ├── tsconfig.test.json ├── tsup.config.ts └── vitest.config.ts /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.github/workflows/pr.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /effect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/effect.md -------------------------------------------------------------------------------- /fixtures/effect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/fixtures/effect.md -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/flake.nix -------------------------------------------------------------------------------- /infra/grafana/dashboards.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/grafana/dashboards.yaml -------------------------------------------------------------------------------- /infra/grafana/dashboards/dashboard.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/grafana/dashboards/dashboard.json -------------------------------------------------------------------------------- /infra/grafana/datasources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/grafana/datasources.yaml -------------------------------------------------------------------------------- /infra/grafana/grafana.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/grafana/grafana.ini -------------------------------------------------------------------------------- /infra/prometheus/prometheus.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/prometheus/prometheus.yaml -------------------------------------------------------------------------------- /infra/tempo/tempo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/infra/tempo/tempo.yaml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /scripts/version.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/scripts/version.mjs -------------------------------------------------------------------------------- /scripts/version.template.txt: -------------------------------------------------------------------------------- 1 | export const moduleVersion = "VERSION" 2 | -------------------------------------------------------------------------------- /src/AIContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/AIContext.ts -------------------------------------------------------------------------------- /src/Cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/Cli.ts -------------------------------------------------------------------------------- /src/Completions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/Completions.ts -------------------------------------------------------------------------------- /src/DocumentChunker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/DocumentChunker.ts -------------------------------------------------------------------------------- /src/Embeddings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/Embeddings.ts -------------------------------------------------------------------------------- /src/OpenAI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/OpenAI.ts -------------------------------------------------------------------------------- /src/RateLimiter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/RateLimiter.ts -------------------------------------------------------------------------------- /src/bin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/bin.ts -------------------------------------------------------------------------------- /src/domain/AbsolutePath.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/domain/AbsolutePath.ts -------------------------------------------------------------------------------- /src/domain/CompletionRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/domain/CompletionRequest.ts -------------------------------------------------------------------------------- /src/domain/Document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/domain/Document.ts -------------------------------------------------------------------------------- /src/domain/DocumentChunk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/domain/DocumentChunk.ts -------------------------------------------------------------------------------- /src/domain/DocumentChunkRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/domain/DocumentChunkRepository.ts -------------------------------------------------------------------------------- /src/internal/version.ts: -------------------------------------------------------------------------------- 1 | export const moduleVersion = "0.0.0" 2 | -------------------------------------------------------------------------------- /src/migrations/00001_create_document_chunks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/migrations/00001_create_document_chunks.ts -------------------------------------------------------------------------------- /src/migrations/00002_document_chunk_unique_index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/migrations/00002_document_chunk_unique_index.ts -------------------------------------------------------------------------------- /src/migrations/00003_create_vss_chunks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/migrations/00003_create_vss_chunks.ts -------------------------------------------------------------------------------- /src/migrations/_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/src/migrations/_schema.sql -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IMax153/effect-openai/HEAD/vitest.config.ts --------------------------------------------------------------------------------