Skip to content

Commit c7c9073

Browse files
committed
Merge remote-tracking branch 'origin/ty/modelconfig' into ty/modelconfig
2 parents cb0fa6a + 9d4c5b0 commit c7c9073

File tree

8 files changed

+6578
-4137
lines changed

8 files changed

+6578
-4137
lines changed

.env.baseai.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# !! SERVER SIDE ONLY !!
2+
# Keep all your API keys secret — use only on the server side.
3+
4+
# TODO: ADD: Both in your production and local env files.
5+
# Langbase API key for your User or Org account.
6+
# How to get this API key https://langbase.com/docs/api-reference/api-keys
7+
LANGBASE_API_KEY=

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,12 @@ next-env.d.ts
4444
.idea
4545

4646
# We ignore the generated file as it should always be generated
47+
public/changelog.rss
48+
49+
# baseai
50+
**/.baseai/
51+
52+
# env file
53+
.env
54+
4755
public/technical-changelog.rss

baseai/baseai.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { BaseAIConfig } from 'baseai';
2+
3+
export const config: BaseAIConfig = {
4+
log: {
5+
isEnabled: true,
6+
logSensitiveData: false,
7+
pipe: true,
8+
'pipe.completion': true,
9+
'pipe.request': true,
10+
'pipe.response': true,
11+
tool: true,
12+
memory: true
13+
},
14+
memory: {
15+
useLocalEmbeddings: false
16+
},
17+
envFilePath: '.env'
18+
};

baseai/memory/docs/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { MemoryI } from '@baseai/core';
2+
import path from 'path';
3+
4+
const memoryDocs = (): MemoryI => ({
5+
name: 'docs',
6+
description: 'Docs folder of sourcegraph docs repository as an auto-synced memory',
7+
config: {
8+
deployedCommitHash: '7a147cfb18f19d5584ffb3805b678db47191960a',
9+
useGitRepo: true,
10+
dirToTrack: path.posix.join('.', 'docs'),
11+
extToTrack: [".md",".mdx"]
12+
}
13+
});
14+
15+
export default memoryDocs;

docs/admin/executors/deploy_executors.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Executors can be deployed in a variety of manners. The supported deployment opti
44

55
- [Linux Binary Service](/admin/executors/deploy_executors_binary) ([Firecracker](./firecracker) compatible)
66
- [Terraform on AWS or GCP](/admin/executors/deploy_executors_terraform) ([Firecracker](./firecracker) compatible)
7-
- (Beta) [Native Kubernetes](/admin/executors/deploy_executors_kubernetes)
8-
- (Beta) [Docker-in-Docker on Kubernetes](/admin/executors/deploy_executors_dind)
9-
- (Beta) [Docker-Compose](/admin/executors/deploy_executors_docker)
7+
- [Native Kubernetes](/admin/executors/deploy_executors_kubernetes)
8+
- [Docker-in-Docker on Kubernetes](/admin/executors/deploy_executors_dind)
9+
- [Docker-Compose](/admin/executors/deploy_executors_docker)
1010

1111
See [deciding which executor deployment method to use ](../executors#deciding-which-executor-deployment-method-to-use) for more information on these different deployment options.
1212

docs/admin/how-to/export-search-results.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You can export search results to a CSV file by pressing the 'Export results' button in the `Actions` menu above the search results.
44

5-
For versions before 4.0, view the legacy docs at [sourcegraph/sourcegraph-search-export](https://github.com/sourcegraph/sourcegraph-search-export#sourcegraph-search-results-csv-export-extension)
5+
<Callout type="note" title="Note">For versions before 5.8, the 'Export Results' action is only available in the legacy UI. For versions before 4.0, view the legacy docs at [sourcegraph/sourcegraph-search-export](https://github.com/sourcegraph/sourcegraph-search-export#sourcegraph-search-results-csv-export-extension).</Callout>
66

77
## FAQs
88

@@ -13,4 +13,4 @@ Before Sourcegraph 4.4.0, the search result export feature used the GraphQL API
1313
This is expected, as all instances that match for a single file will be listed in the same entry column under the Search matches row.
1414

1515
#### Network Error when downloading CSV
16-
Check the browser's dev tools network tab for more details on the specific network error. The CSV file likely exceeds the browser's limit for data URI size. You can limit the size of search results exported with the `count:` filter in the search query.
16+
Check the browser's dev tools network tab for more details on the specific network error. The CSV file likely exceeds the browser's limit for data URI size. You can limit the size of search results exported with the `count:` filter in the search query.

package.json

Lines changed: 72 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,73 @@
11
{
2-
"name": "sourcegraph-docs",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
10-
},
11-
"browserslist": "defaults, not ie <= 11",
12-
"dependencies": {
13-
"@algolia/autocomplete-core": "^1.9.2",
14-
"@algolia/client-search": "^4.22.1",
15-
"@docsearch/react": "3",
16-
"@headlessui/react": "^1.7.13",
17-
"@heroicons/react": "^2.0.18",
18-
"@mdx-js/mdx": "^3.0.1",
19-
"@next/third-parties": "^14.1.4",
20-
"@radix-ui/react-hover-card": "^1.1.1",
21-
"@radix-ui/react-select": "^2.0.0",
22-
"@radix-ui/react-slot": "^1.0.2",
23-
"@tailwindcss/typography": "^0.5.7",
24-
"@types/node": "20.4.9",
25-
"@types/react": "18.2.20",
26-
"@types/react-dom": "18.2.7",
27-
"@types/react-highlight-words": "^0.16.4",
28-
"algoliasearch": "^4.22.1",
29-
"autoprefixer": "^10.4.12",
30-
"class-variance-authority": "^0.7.0",
31-
"clsx": "^1.2.1",
32-
"contentlayer": "^0.3.4",
33-
"date-fns": "^2.30.0",
34-
"fast-glob": "^3.2.12",
35-
"feed": "^4.2.2",
36-
"flexsearch": "^0.7.31",
37-
"github-slugger": "^2.0.0",
38-
"js-yaml": "^4.1.0",
39-
"kbar": "^0.1.0-beta.44",
40-
"lucide-react": "^0.372.0",
41-
"mdx": "^0.3.1",
42-
"next": "^14.2.3",
43-
"next-contentlayer": "^0.3.4",
44-
"next-themes": "^0.2.1",
45-
"prism-react-renderer": "^2.0.6",
46-
"react": "18.3.1",
47-
"react-dom": "18.3.1",
48-
"react-highlight-words": "^0.20.0",
49-
"react-syntax-highlighter": "^15.5.0",
50-
"rehype-autolink-headings": "^7.1.0",
51-
"rehype-pretty-code": "^0.10.2",
52-
"rehype-slug": "^6.0.0",
53-
"rehype-toc": "^3.0.2",
54-
"remark-gfm": "3.0.1",
55-
"shiki": "^0.14.5",
56-
"simple-functional-loader": "^1.2.1",
57-
"tailwind-merge": "^2.3.0",
58-
"tailwindcss": "^3.3.3",
59-
"tailwindcss-animate": "^1.0.7",
60-
"typescript": "5.1.6",
61-
"unist-util-visit": "^5.0.0"
62-
},
63-
"devDependencies": {
64-
"eslint": "8.45.0",
65-
"eslint-config-next": "13.4.16",
66-
"prettier": "^3.0.1",
67-
"prettier-plugin-tailwindcss": "^0.5.2",
68-
"sharp": "^0.32.0"
69-
}
70-
}
2+
"name": "sourcegraph-docs",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"baseai": "baseai"
11+
},
12+
"browserslist": "defaults, not ie <= 11",
13+
"dependencies": {
14+
"@algolia/autocomplete-core": "^1.9.2",
15+
"@algolia/client-search": "^4.22.1",
16+
"@baseai/core": "^0.9.8",
17+
"@docsearch/react": "3",
18+
"@headlessui/react": "^1.7.13",
19+
"@heroicons/react": "^2.0.18",
20+
"@mdx-js/mdx": "^3.0.1",
21+
"@next/third-parties": "^14.1.4",
22+
"@radix-ui/react-hover-card": "^1.1.1",
23+
"@radix-ui/react-select": "^2.0.0",
24+
"@radix-ui/react-slot": "^1.0.2",
25+
"@tailwindcss/typography": "^0.5.7",
26+
"@types/node": "20.4.9",
27+
"@types/react": "18.2.20",
28+
"@types/react-dom": "18.2.7",
29+
"@types/react-highlight-words": "^0.16.4",
30+
"algoliasearch": "^4.22.1",
31+
"autoprefixer": "^10.4.12",
32+
"class-variance-authority": "^0.7.0",
33+
"clsx": "^1.2.1",
34+
"contentlayer": "^0.3.4",
35+
"date-fns": "^2.30.0",
36+
"fast-glob": "^3.2.12",
37+
"feed": "^4.2.2",
38+
"flexsearch": "^0.7.31",
39+
"github-slugger": "^2.0.0",
40+
"js-yaml": "^4.1.0",
41+
"kbar": "^0.1.0-beta.44",
42+
"lucide-react": "^0.372.0",
43+
"mdx": "^0.3.1",
44+
"next": "^14.2.3",
45+
"next-contentlayer": "^0.3.4",
46+
"next-themes": "^0.2.1",
47+
"prism-react-renderer": "^2.0.6",
48+
"react": "18.3.1",
49+
"react-dom": "18.3.1",
50+
"react-highlight-words": "^0.20.0",
51+
"react-syntax-highlighter": "^15.5.0",
52+
"rehype-autolink-headings": "^7.1.0",
53+
"rehype-pretty-code": "^0.10.2",
54+
"rehype-slug": "^6.0.0",
55+
"rehype-toc": "^3.0.2",
56+
"remark-gfm": "3.0.1",
57+
"shiki": "^0.14.5",
58+
"simple-functional-loader": "^1.2.1",
59+
"tailwind-merge": "^2.3.0",
60+
"tailwindcss": "^3.3.3",
61+
"tailwindcss-animate": "^1.0.7",
62+
"typescript": "5.1.6",
63+
"unist-util-visit": "^5.0.0"
64+
},
65+
"devDependencies": {
66+
"baseai": "^0.9.8",
67+
"eslint": "8.45.0",
68+
"eslint-config-next": "13.4.16",
69+
"prettier": "^3.0.1",
70+
"prettier-plugin-tailwindcss": "^0.5.2",
71+
"sharp": "^0.32.0"
72+
}
73+
}

0 commit comments

Comments
 (0)