Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learnings from building AI-based code generator #13719

Merged
merged 28 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
943014b
Codegen post - template file
arturl Dec 24, 2024
8cfbce3
Checkpoint - intro, precision and recall
arturl Dec 26, 2024
9f3f943
Create meta.png
arturl Dec 26, 2024
b467d22
Install KaTeX
arturl Dec 27, 2024
1df9502
Try to fix the formulas
arturl Dec 27, 2024
5268b2c
Fix formula, add flow diagram
arturl Dec 27, 2024
51eab42
Code complete
arturl Dec 27, 2024
a195091
Wording
arturl Dec 27, 2024
6c9d65b
More wording changes
arturl Dec 27, 2024
db00eae
More word-smithing
arturl Dec 27, 2024
328c62e
Address feedback from Simon
arturl Jan 2, 2025
c9b3769
Adjust self-debugging description
arturl Jan 2, 2025
1950af5
Remove H2 header
arturl Jan 4, 2025
e9b84bd
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
bd52ae9
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
85b310c
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
2c655dc
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
4b86a80
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
274f954
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
3982830
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
b6681db
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
fd1f812
Update content/blog/codegen-learnings/index.md
arturl Jan 4, 2025
d352528
Update content/blog/codegen-learnings/index.md
arturl Jan 6, 2025
8e7fd24
Update content/blog/codegen-learnings/index.md
arturl Jan 6, 2025
ef51933
Code review feedback
arturl Jan 6, 2025
93d44fa
Update publish date
arturl Jan 6, 2025
356a9bc
Improved "Wrapping up" section
arturl Jan 6, 2025
4aaceea
Update title
arturl Jan 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/blog/codegen-learnings/flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
350 changes: 350 additions & 0 deletions content/blog/codegen-learnings/flow.tldr
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
{
"tldrawFileFormatVersion": 1,
"schema": {
"schemaVersion": 2,
"sequences": {
"com.tldraw.store": 4,
"com.tldraw.asset": 1,
"com.tldraw.camera": 1,
"com.tldraw.document": 2,
"com.tldraw.instance": 25,
"com.tldraw.instance_page_state": 5,
"com.tldraw.page": 1,
"com.tldraw.instance_presence": 6,
"com.tldraw.pointer": 1,
"com.tldraw.shape": 4,
"com.tldraw.asset.bookmark": 2,
"com.tldraw.asset.image": 5,
"com.tldraw.asset.video": 5,
"com.tldraw.shape.group": 0,
"com.tldraw.shape.text": 2,
"com.tldraw.shape.bookmark": 2,
"com.tldraw.shape.draw": 2,
"com.tldraw.shape.geo": 9,
"com.tldraw.shape.note": 8,
"com.tldraw.shape.line": 5,
"com.tldraw.shape.frame": 0,
"com.tldraw.shape.arrow": 5,
"com.tldraw.shape.highlight": 1,
"com.tldraw.shape.embed": 4,
"com.tldraw.shape.image": 4,
"com.tldraw.shape.video": 2,
"com.tldraw.binding.arrow": 0
}
},
"records": [
{
"gridSize": 10,
"name": "",
"meta": {},
"id": "document:document",
"typeName": "document"
},
{
"meta": {},
"id": "page:page",
"name": "Page 1",
"index": "a1",
"typeName": "page"
},
{
"id": "pointer:pointer",
"typeName": "pointer",
"x": 669.8918917643175,
"y": 138.5839177911932,
"lastActivityTimestamp": 1735273096160,
"meta": {}
},
{
"followingUserId": null,
"opacityForNextShape": 1,
"stylesForNextShape": {
"tldraw:size": "s",
"tldraw:font": "sans",
"tldraw:geo": "arrow-right"
},
"brush": null,
"scribbles": [],
"cursor": {
"type": "default",
"rotation": 0
},
"isFocusMode": false,
"exportBackground": true,
"isDebugMode": false,
"isToolLocked": false,
"screenBounds": {
"x": 0,
"y": 0,
"w": 1516,
"h": 978
},
"insets": [
false,
false,
true,
false
],
"zoomBrush": null,
"isGridMode": true,
"isPenMode": false,
"chatMessage": "",
"isChatting": false,
"highlightedUserIds": [],
"isFocused": true,
"devicePixelRatio": 2,
"isCoarsePointer": false,
"isHoveringCanvas": false,
"openMenus": [],
"isChangingStyle": false,
"isReadonly": false,
"meta": {},
"duplicateProps": null,
"id": "instance:instance",
"currentPageId": "page:page",
"typeName": "instance"
},
{
"editingShapeId": "shape:w85ZdRavHw60qk11asf2f",
"croppingShapeId": null,
"selectedShapeIds": [
"shape:w85ZdRavHw60qk11asf2f"
],
"hoveredShapeId": "shape:w85ZdRavHw60qk11asf2f",
"erasingShapeIds": [],
"hintingShapeIds": [],
"focusedGroupId": null,
"meta": {},
"id": "instance_page_state:page:page",
"pageId": "page:page",
"typeName": "instance_page_state"
},
{
"x": 568.1002957356825,
"y": 95.68951970880681,
"z": 1,
"meta": {},
"id": "camera:page:page",
"typeName": "camera"
},
{
"x": -449.9453125,
"y": 90.6484375,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:BJfJwAyLKVoUOGaixU2Xf",
"type": "text",
"props": {
"color": "black",
"size": "s",
"w": 252.359375,
"text": "User query:\n\n\"Generate code for S3 Bucket\"",
"font": "sans",
"textAlign": "start",
"autoSize": true,
"scale": 1
},
"parentId": "page:page",
"index": "a1",
"typeName": "shape"
},
{
"x": -115.64453125,
"y": 66.3515625,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:z2gtvIBdf6_eCX2gzQ2L1",
"type": "text",
"props": {
"color": "black",
"size": "s",
"w": 310.2265625,
"text": "Search terms:\n\n\"AWS S3 bucket\",\n\"Pulumi AWS S3\",\n\"create S3 bucket Pulumi TypeScript\"",
"font": "sans",
"textAlign": "start",
"autoSize": true,
"scale": 1
},
"parentId": "page:page",
"index": "a22v7",
"typeName": "shape"
},
{
"x": -464.546875,
"y": 64.283203125,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:PGJKCoOonmat14xrifIp0",
"type": "geo",
"props": {
"w": 286.8671875,
"h": 132.9296875,
"geo": "rectangle",
"color": "black",
"labelColor": "black",
"fill": "none",
"dash": "draw",
"size": "s",
"font": "sans",
"text": "",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": "",
"scale": 1
},
"parentId": "page:page",
"index": "a39Cr",
"typeName": "shape"
},
{
"x": -127.64453125,
"y": 44.542968750000014,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:hrkCX2QL0NyXDz_xl3n_i",
"type": "geo",
"props": {
"w": 342.9609375,
"h": 172.41015624999997,
"geo": "rectangle",
"color": "black",
"labelColor": "black",
"fill": "none",
"dash": "draw",
"size": "s",
"font": "sans",
"text": "",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": "",
"scale": 1
},
"parentId": "page:page",
"index": "a40nT",
"typeName": "shape"
},
{
"x": -167.953125,
"y": 108.8125,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:0vPmbhCIhdgPr7gYnOxm9",
"type": "geo",
"props": {
"w": 35.16015625,
"h": 32.6484375,
"geo": "arrow-right",
"color": "black",
"labelColor": "black",
"fill": "none",
"dash": "draw",
"size": "s",
"font": "sans",
"text": "",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": "",
"scale": 1
},
"parentId": "page:page",
"index": "a55Ml",
"typeName": "shape"
},
{
"x": 271.31640625,
"y": 45.166015625000014,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:zKhbmUEYseK-ARUqsueaU",
"type": "geo",
"props": {
"w": 461.8359375,
"h": 171.16406249999997,
"geo": "rectangle",
"color": "black",
"labelColor": "black",
"fill": "none",
"dash": "draw",
"size": "s",
"font": "sans",
"text": "",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": "",
"scale": 1
},
"parentId": "page:page",
"index": "a6BSd",
"typeName": "shape"
},
{
"x": 285.83203125,
"y": 66.3515625,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:w85ZdRavHw60qk11asf2f",
"type": "text",
"props": {
"color": "black",
"size": "s",
"w": 424.9375,
"text": "Vector embeddings:\n\n[-0.0076232012,-0.010399864,0.0059319614,...],\n[-0.005639301,-0.023723211,0.0038147154,...],\n[0.018597506,-0.0078847855,0.0010430623,...]",
"font": "sans",
"textAlign": "start",
"autoSize": true,
"scale": 1
},
"parentId": "page:page",
"index": "a74wf",
"typeName": "shape"
},
{
"x": 226.046875,
"y": 108.8125,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"id": "shape:ariCerCfkEZAkC019XVqj",
"type": "geo",
"props": {
"w": 35.16015625,
"h": 32.6484375,
"geo": "arrow-right",
"color": "black",
"labelColor": "black",
"fill": "none",
"dash": "draw",
"size": "s",
"font": "sans",
"text": "",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": "",
"scale": 1
},
"parentId": "page:page",
"index": "a8AEN",
"typeName": "shape"
}
]
}
Loading
Loading