Skip to content

Commit 083e464

Browse files
committed
tweak docs
1 parent 0dc2b48 commit 083e464

File tree

2 files changed

+42
-40
lines changed

2 files changed

+42
-40
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
## Overview
1515

16-
The BSD-3 licensed [`CustomCode-Analyzer`](https://github.com/jonathanalgar/CustomCode-Analyzer) component was released to give you real-time feedback your C# code as you build an External Library in your IDE of choice. But more generally `CustomCode-Analyzer` can be thought of as a way of locally validating an External Library at the point of build. This makes it a powerful component in an end-to-end Large Language Model (LLM) pipeline for generating an ODC External Library:
16+
The BSD-3 licensed [`CustomCode-Analyzer`](https://github.com/jonathanalgar/CustomCode-Analyzer) component was released to give you real-time feedback your C# code as you build an external library in your IDE of choice. But more generally `CustomCode-Analyzer` can be thought of as a way of locally validating an external library at the point of build. This makes it a powerful component in an end-to-end Large Language Model (LLM) pipeline for generating an ODC external library:
1717

1818
![](./README_resources/diagram.png)
1919

20-
The `CustomCode-Analyzer-Generator` is an orchestrator around the `CustomCode-Analyzer` and other local components and external APIs. As seen in the above diagram the `CustomCode-Analyzer-Generator` takes user input for an External Library functionality and:
20+
The `CustomCode-Analyzer-Generator` is an orchestrator around the `CustomCode-Analyzer` and other local components and external APIs. As seen in the above diagram the `CustomCode-Analyzer-Generator` takes user input for an external library functionality and:
2121

2222
* Calls the NuGet API and LLMs to generate the candidate implementation and unit test code.
2323
* Creates implementation and unit test C# projects, installs packages and incorporates candidate code.
@@ -59,7 +59,7 @@ _(Quick start script for Mac coming soon)._
5959

6060
## Technical notes on evaluation
6161

62-
To validate that the LLM pipeline works effectively and generates external libraries aligned with user intent there is a supplementary evaluation pipeline complete with [eight diverse test cases](./agents/evaluation/ground_truth/).
62+
To validate that the LLM pipeline works effectively and generates external libraries aligned with user intent there is a supplementary evaluation pipeline complete with [eight diverse test cases](./agents/evaluation/ground_truth/). The objective is [to add more](https://github.com/jonathanalgar/CustomCode-Analyzer-Generator/issues/6).
6363

6464
This means a range of models and prompts can be programatically benchmarked. The central piece of pipeline is the Roslyn-based [`CCGATestGenerator`](./agents/evaluation/CCAGTestGenerator/), which—given the LLM-generated implementation code and human created ground truth file—will deterministically create a unit test.
6565

@@ -76,6 +76,9 @@ You can replicate a run using:
7676
```
7777
docker compose -f run_full_benchmark.yml up --abort-on-container-exit
7878
```
79+
80+
> :bulb: API access to o3-mini is [still in preview](https://help.openai.com/en/articles/10362446-api-access-to-o1-and-o3-mini).
81+
7982
_(More documentation and analysis coming soon.)_
8083

8184
## TODO

windows_setup.ps1

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,6 @@ try {
1616
exit
1717
}
1818

19-
# Perform Docker cleanup to prevent accumulation of old containers and images
20-
Write-Host "`nCleaning up old containers and images..."
21-
try {
22-
# Stop and remove only containers related to this specific image
23-
$containers = docker ps -a --filter "ancestor=ghcr.io/jonathanalgar/customcode-analyzer-generator" --format "{{.ID}}"
24-
if ($containers) {
25-
Write-Host "Removing old containers from customcode-analyzer-generator..."
26-
docker rm -f $containers
27-
} else {
28-
Write-Host "No old containers from customcode-analyzer-generator found."
29-
}
30-
31-
# Remove only dangling images related to this specific repository
32-
# This is much safer than a broad prune
33-
$danglingImages = docker images --filter "dangling=true" --filter "reference=ghcr.io/jonathanalgar/customcode-analyzer-generator*" --format "{{.ID}}"
34-
if ($danglingImages) {
35-
Write-Host "Removing dangling images from customcode-analyzer-generator..."
36-
docker rmi $danglingImages
37-
} else {
38-
Write-Host "No dangling images from customcode-analyzer-generator found."
39-
}
40-
41-
# Remove old versions of the image (keep the latest)
42-
$images = docker images "ghcr.io/jonathanalgar/customcode-analyzer-generator" --format "{{.ID}}" | Select-Object -Skip 1
43-
if ($images) {
44-
Write-Host "Removing old image versions of customcode-analyzer-generator..."
45-
docker rmi $images
46-
} else {
47-
Write-Host "No old image versions of customcode-analyzer-generator found."
48-
}
49-
50-
Write-Host "Cleanup completed successfully" -ForegroundColor Green
51-
} catch {
52-
Write-Host "Warning: Cleanup encountered an issue. Continuing with installation..." -ForegroundColor Yellow
53-
Write-Host $_.Exception.Message
54-
}
55-
5619
# Get the current username
5720
$username = $env:USERNAME
5821

@@ -111,6 +74,42 @@ try {
11174
exit
11275
}
11376
77+
# Perform Docker cleanup to prevent accumulation of old containers and images
78+
Write-Host "`nCleaning up old containers and images..."
79+
try {
80+
# Stop and remove only containers related to this specific image
81+
$containers = docker ps -a --filter "ancestor=ghcr.io/jonathanalgar/customcode-analyzer-generator" --format "{{.ID}}"
82+
if ($containers) {
83+
Write-Host "Removing old containers from customcode-analyzer-generator..."
84+
docker rm -f $containers
85+
} else {
86+
Write-Host "No old containers from customcode-analyzer-generator found."
87+
}
88+
89+
# Remove only dangling images related to this specific repository
90+
$danglingImages = docker images --filter "dangling=true" --filter "reference=ghcr.io/jonathanalgar/customcode-analyzer-generator*" --format "{{.ID}}"
91+
if ($danglingImages) {
92+
Write-Host "Removing dangling images from customcode-analyzer-generator..."
93+
docker rmi $danglingImages
94+
} else {
95+
Write-Host "No dangling images from customcode-analyzer-generator found."
96+
}
97+
98+
# Remove old versions of the image (keep the latest)
99+
$images = docker images "ghcr.io/jonathanalgar/customcode-analyzer-generator" --format "{{.ID}}" | Select-Object -Skip 1
100+
if ($images) {
101+
Write-Host "Removing old image versions of customcode-analyzer-generator..."
102+
docker rmi $images
103+
} else {
104+
Write-Host "No old image versions of customcode-analyzer-generator found."
105+
}
106+
107+
Write-Host "Cleanup completed successfully" -ForegroundColor Green
108+
} catch {
109+
Write-Host "Warning: Cleanup encountered an issue. Continuing..." -ForegroundColor Yellow
110+
Write-Host $_.Exception.Message
111+
}
112+
114113
$scriptPath = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition
115114
Set-Location -Path $scriptPath
116115

0 commit comments

Comments
 (0)