1version: v1beta1
2kind: Spicepod
3name: nextjs
4
5datasets:
6  - from: github:github.com/vercel/next.js/files/canary
7    name: nextjs.docs
8    description: Next.js documentation from https://nextjs.org/docs
9    params:
10      file_format: md
11      github_client_id: ${secrets:GITHUB_CLIENT_ID}
12      github_private_key: ${secrets:GITHUB_PRIVATE_KEY}
13      github_installation_id: ${secrets:GITHUB_INSTALLATION_ID}
14      include: "docs/**/*.mdx"
15    acceleration:
16      enabled: true
17      refresh_check_interval: 4h
18      refresh_jitter_enabled: true
19      refresh_jitter_max: 15m
20    columns:
21      - name: content
22        embeddings:
23          - from: openai_embeddings
24            row_id:
25              - path
26            chunking:
27              enabled: true
28              target_chunk_size: 512
29              overlap_size: 128
30              trim_whitespace: true
31
32  - from: github:github.com/vercel/next.js/issues
33    name: nextjs.issues
34    description: Next.js GitHub issues from github.com/vercel/next.js
35    time_column: created_at
36    params:
37      file_format: md
38      github_client_id: ${secrets:GITHUB_CLIENT_ID}
39      github_private_key: ${secrets:GITHUB_PRIVATE_KEY}
40      github_installation_id: ${secrets:GITHUB_INSTALLATION_ID}
41    acceleration:
42      enabled: true
43      refresh_check_interval: 4h
44      refresh_mode: full
45      refresh_jitter_enabled: true
46      refresh_jitter_max: 15m
47    # embeddings:
48    #   - column: title
49    #     column_pk:
50    #       - id
51    #     use: openai_embeddings
52
53embeddings:
54  - from: openai
55    name: openai_embeddings
56    params:
57      openai_api_key: ${ secrets:OPENAI_API_KEY }
58
1version: v1beta1
2kind: Spicepod
3name: nextjs
4
5datasets:
6  - from: github:github.com/vercel/next.js/files/canary
7    name: nextjs.docs
8    description: Next.js documentation from https://nextjs.org/docs
9    params:
10      file_format: md
11      github_client_id: ${secrets:GITHUB_CLIENT_ID}
12      github_private_key: ${secrets:GITHUB_PRIVATE_KEY}
13      github_installation_id: ${secrets:GITHUB_INSTALLATION_ID}
14      include: "docs/**/*.mdx"
15    acceleration:
16      enabled: true
17      refresh_check_interval: 4h
18      refresh_jitter_enabled: true
19      refresh_jitter_max: 15m
20    columns:
21      - name: content
22        embeddings:
23          - from: openai_embeddings
24            row_id:
25              - path
26            chunking:
27              enabled: true
28              target_chunk_size: 512
29              overlap_size: 128
30              trim_whitespace: true
31
32  - from: github:github.com/vercel/next.js/issues
33    name: nextjs.issues
34    description: Next.js GitHub issues from github.com/vercel/next.js
35    time_column: created_at
36    params:
37      file_format: md
38      github_client_id: ${secrets:GITHUB_CLIENT_ID}
39      github_private_key: ${secrets:GITHUB_PRIVATE_KEY}
40      github_installation_id: ${secrets:GITHUB_INSTALLATION_ID}
41    acceleration:
42      enabled: true
43      refresh_check_interval: 4h
44      refresh_mode: full
45      refresh_jitter_enabled: true
46      refresh_jitter_max: 15m
47    # embeddings:
48    #   - column: title
49    #     column_pk:
50    #       - id
51    #     use: openai_embeddings
52
53embeddings:
54  - from: openai
55    name: openai_embeddings
56    params:
57      openai_api_key: ${ secrets:OPENAI_API_KEY }
58