1414 GITHUB_PACKAGES_SOURCE : https://nuget.pkg.github.com/byerlikaya/index.json
1515
1616jobs :
17- test :
18- name : Test & Quality
19- runs-on : ubuntu-latest
20- permissions :
21- contents : read
22- pull-requests : read
23-
24- steps :
25- - uses : actions/checkout@v4
26-
27- - name : Setup .NET
28- uses : actions/setup-dotnet@v4
29- with :
30- dotnet-version : ${{ env.DOTNET_VERSION }}
31-
32- - name : Restore dependencies
33- run : dotnet restore src/SmartRAG/SmartRAG.csproj
34-
35- - name : Build
36- run : dotnet build src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity minimal
37-
38- - name : Run tests
39- run : dotnet test src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity minimal --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults --no-build
40- continue-on-error : true
41-
42- - name : Upload coverage reports to Codecov
43- uses : codecov/codecov-action@v5
44- with :
45- token : ${{ secrets.CODECOV_TOKEN }}
46- directory : ./TestResults
47- flags : unittests
48- name : codecov-umbrella
49- fail_ci_if_error : false
50-
51- - name : Run code analysis
52- run : dotnet build src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity quiet
53-
54- - name : Check for vulnerabilities
55- run : dotnet list package --vulnerable --project src/SmartRAG/SmartRAG.csproj
56-
5717 build :
5818 name : Build & Package
5919 runs-on : ubuntu-latest
@@ -166,24 +126,9 @@ jobs:
166126 id : get_version
167127 run : |
168128 PACKAGE_VERSION=$(grep -oP '<PackageVersion>\K[^<]+' src/SmartRAG/SmartRAG.csproj)
169-
170129 echo "version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
171130 echo "Package version: $PACKAGE_VERSION"
172131
173- - name : Generate changelog
174- id : changelog
175- run : |
176- # Get commits since last release
177- LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
178- if [ -n "$LAST_TAG" ]; then
179- CHANGELOG=$(git log --pretty=format:"- %s (%an)" ${LAST_TAG}..HEAD | grep -v "Merge pull request" | grep -v "Merge branch")
180- else
181- CHANGELOG=$(git log --pretty=format:"- %s (%an)" --oneline -20 | grep -v "Merge pull request" | grep -v "Merge branch")
182- fi
183- echo "changelog<<EOF" >> $GITHUB_OUTPUT
184- echo "$CHANGELOG" >> $GITHUB_OUTPUT
185- echo "EOF" >> $GITHUB_OUTPUT
186-
187132 - name : Create Release
188133 uses : actions/create-release@v1
189134 env :
@@ -192,32 +137,13 @@ jobs:
192137 tag_name : v${{ steps.get_version.outputs.version }}-build-${{ github.run_number }}
193138 release_name : SmartRAG v${{ steps.get_version.outputs.version }} Build ${{ github.run_number }}
194139 body : |
195- ## π What's New in v${{ steps.get_version.outputs.version }}
140+ ## π SmartRAG v${{ steps.get_version.outputs.version }} Release
196141
197- ### β¨ Latest Features
198- - π§ **Enhanced Semantic Search** - Advanced hybrid scoring (80% semantic + 20% keyword)
199- - π **Smart Document Chunking** - Word boundary validation and optimal break points
200- - π§ **SemanticSearchService** - Dedicated service for semantic relevance scoring
201- - βοΈ **Configuration Binding Fix** - User settings now take absolute priority
202- - π§ **Improved Error Handling** - Better logging and retry mechanisms
203- - π **Performance Optimizations** - Faster chunking and search algorithms
204-
205- ### π§ Previous Features
206- - π§ **Smart Query Intent Detection** - Automatically routes queries to chat vs document search
207- - π **Language-Agnostic Design** - Removed all hardcoded language patterns
208- - π **Enhanced Search Relevance** - Improved name detection and content scoring
209- - π€ **Unicode Normalization** - Fixed special character handling issues
210- - β‘ **Rate Limiting & Retry Logic** - Robust API handling with exponential backoff
211- - π **VoyageAI Integration** - Anthropic embedding support
212- - π **Enhanced Documentation** - Official documentation links
213- - π§Ή **Configuration Cleanup** - Removed unnecessary fields
214- - π― **Project Simplification** - Streamlined for better performance
215-
216- ## π¦ Downloads
142+ ### π¦ Downloads
217143 - **NuGet Package**: [SmartRAG v${{ steps.get_version.outputs.version }}](https://www.nuget.org/packages/SmartRAG/${{ steps.get_version.outputs.version }})
218144 - **GitHub Packages**: Available in this repository
219145
220- ## π Installation
146+ ### π Installation
221147 ```bash
222148 # NuGet
223149 dotnet add package SmartRAG --version ${{ steps.get_version.outputs.version }}
@@ -226,15 +152,6 @@ jobs:
226152 dotnet add package SmartRAG --version ${{ steps.get_version.outputs.version }} --source https://nuget.pkg.github.com/byerlikaya/index.json
227153 ```
228154
229- ## π Recent Changes
230- ${{ steps.changelog.outputs.changelog }}
231-
232- ## π Links
233- - π [Documentation](https://github.com/byerlikaya/SmartRAG#readme)
234- - π [Report Issues](https://github.com/byerlikaya/SmartRAG/issues)
235- - π¬ [Discussions](https://github.com/byerlikaya/SmartRAG/discussions)
236- - π§ [Contact](mailto:b.yerlikaya@outlook.com)
237-
238155 ---
239156
240157 **Built with β€οΈ by BarΔ±Ε Yerlikaya** | Made in Turkey πΉπ·
@@ -251,49 +168,4 @@ jobs:
251168 asset_name : SmartRAG.${{ steps.get_version.outputs.version }}.nupkg
252169 asset_content_type : application/octet-stream
253170
254- security-scan :
255- name : Security Scan
256- runs-on : ubuntu-latest
257- if : github.ref == 'refs/heads/main'
258- permissions :
259- contents : read
260- security-events : write
261- continue-on-error : true
262-
263- steps :
264- - uses : actions/checkout@v4
265-
266- - name : Setup .NET
267- uses : actions/setup-dotnet@v4
268- with :
269- dotnet-version : ${{ env.DOTNET_VERSION }}
270-
271- - name : Restore dependencies
272- run : dotnet restore src/SmartRAG/SmartRAG.csproj
273-
274- - name : Run security scan
275- run : |
276- echo "Checking for vulnerable packages..."
277- dotnet list package --vulnerable --project src/SmartRAG/SmartRAG.csproj
278- echo "Checking for outdated packages..."
279- dotnet tool install --global dotnet-outdated-tool || echo "dotnet-outdated already installed"
280- dotnet outdated --upgrade --project src/SmartRAG/SmartRAG.csproj || echo "No outdated packages or tool unavailable"
281-
282- - name : Initialize CodeQL
283- uses : github/codeql-action/init@v3
284- with :
285- languages : csharp
286- config-file : ./.github/codeql/codeql-config.yml
287- continue-on-error : true
288-
289- - name : Autobuild
290- uses : github/codeql-action/autobuild@v3
291- continue-on-error : true
292-
293- - name : Perform CodeQL Analysis
294- uses : github/codeql-action/analyze@v3
295- with :
296- category : " /language:csharp"
297- continue-on-error : true
298-
299171
0 commit comments