142 Commits

Author SHA1 Message Date
Logan f897c696a4 Merge pull request #12 from adamsitnik/publishing 2025-11-04 10:24:39 -06:00
Logan 9465d16d1c Merge pull request #11 from adamsitnik/imgMetadataChanges 2025-11-04 10:24:03 -06:00
Adam Sitnik 02083e9d56 set IsPackable to false by default for all the projects, so only libraries enable it on purpose 2025-09-29 17:48:07 +02:00
Adam Sitnik 0a06924e24 move all the common settings to Directory.Build.props file (imported automatically by all the .csproj files in the same folder)
keep in mind that LlamaIndex.Core so far was not specifying Company
2025-09-29 17:45:29 +02:00
Adam Sitnik 9d737647db adjust to image metadata changes:
- with and height are no longer integers, but doubles
- real_width and original_height are now original_width and original_height
2025-09-29 16:05:29 +02:00
Logan 7466118ca3 Merge pull request #10 from adamsitnik/creditsMaxIsNotMandatory
the "credits_max" property is not mandatory
2025-09-22 15:27:05 -06:00
Logan e1d4d85801 Merge pull request #9 from adamsitnik/vulns
Fix dependency issues
2025-09-22 15:26:28 -06:00
Adam Sitnik 16ba4af6e2 the "credits_max" property is not mandatory 2025-08-05 20:55:49 +02:00
Adam Sitnik 8097768f6a fix: "Found conflicts between different versions of "Microsoft.Bcl.AsyncInterfaces" that could not be resolved." problem:
- remove Microsoft.Bcl.AsyncInterfaces dependency from LlamaParseAspire project (not needed)
- remove Azure.Monitor.OpenTelemetry.Exporte from LlamaParse.csproj (not needed and also referencing an old version of Microsoft.Bcl.AsyncInterfaces)
- add explicit dependency to Microsoft.Bcl.AsyncInterfaces to LlamaParse to be able to use IAsyncEnumerable
2025-08-05 18:49:39 +02:00
Adam Sitnik 4e6625eb28 fix: Package 'System.Text.Json' 8.0.3 has a known high severity vulnerability 2025-08-05 18:38:29 +02:00
Logan 14dc8031b4 Merge pull request #8 from run-llama/javier/fix-readme-typo
Fix readme typo
2024-09-10 16:51:08 -06:00
Javier Torres 4bdfda5a69 Fix readme typo 2024-09-10 17:48:08 -05:00
Logan 386093670f Merge pull request #7 from run-llama/logan/fix_publish_version v0.1.0 2024-09-10 16:26:02 -06:00
Logan Markewich 811d22a084 set version in github action 2024-09-10 16:24:49 -06:00
Logan 1d236495b8 Merge pull request #6 from run-llama/logan/actions
add format and flesh out actions
2024-09-10 16:21:28 -06:00
Logan Markewich 1083f50581 add format and flesh out actions 2024-09-10 16:11:51 -06:00
luisquintanilla 7f877a7277 Added XML comments 2024-07-30 17:56:00 +01:00
luisquintanilla 2252daf5ce Add Codespaces and devcontainers badges 2024-07-30 17:56:00 +01:00
luisquintanilla a02d8b26eb Add devcontainer config 2024-07-30 17:56:00 +01:00
luisquintanilla 59f203ea98 Update license 2024-07-30 17:56:00 +01:00
luisquintanilla bb8b051d75 Added contributing and main README 2024-07-30 17:56:00 +01:00
luisquintanilla c05354b2a4 Add samples README 2024-07-30 17:56:00 +01:00
luisquintanilla 143b84e981 Add Hello World Sample 2024-07-30 17:56:00 +01:00
Diego Colombo ea0d79faac feat: Update LlamaParseClient to support language and item extraction
- Updated LlamaParseClient constructor to deserialize the Configuration object
- Added Language and ItemsToExtract properties to the Configuration class
- Modified CreateJobAsync method in LlamaParseApiClient to accept language parameter
- Modified LoadDataRawAsync methods in LlamaParseClient to accept language parameter
- Modified LoadDataAsync methods in LlamaParseClientExtensions to accept language and itemsToExtract parameters
2024-07-23 16:28:51 +01:00
Luis Quintanilla 164ea31da4 Merge pull request #3 from colombod/doc-samples-updates
Updates to README and samples
2024-07-17 10:58:07 -04:00
Diego Colombo d455e7b441 feat: Update LlamaParseClient configuration handling
This commit updates the configuration handling in the `LlamaParseClient` class. The `LlamaParseClient` now accepts a `Configuration` object instead of individual parameters for API key, endpoint, and other settings. This change allows for more flexibility and easier management of client configurations.

The following significant changes were made:
- Updated the constructor of `LlamaParseClient` to accept a `Configuration` object.
- Modified the usage of `Configuration` in various test classes to pass it as an argument to the `LlamaParseClient` constructor.
- Updated the implementation of the `AddLlamaParseClient` extension method to accept a `Configuration` object instead of individual parameters.

These changes improve code readability and maintainability by encapsulating related configuration settings within a single object.
2024-07-17 15:52:09 +01:00
luisquintanilla bad8357dfa Add Getting Started README 2024-07-16 13:59:03 -04:00
Luis Quintanilla d793327379 Merge pull request #2 from colombod/aspire-component
Add Aspire Component / DI Extensions
2024-07-16 13:47:34 -04:00
luisquintanilla a14e76ed15 Removed extension specific project and updated methods based on feedback 2024-07-16 13:44:23 -04:00
luisquintanilla ff8f39e517 Add DI extensions and fix sample inmemory issue 2024-07-16 12:49:04 -04:00
Diego Colombo 019048db80 Update build version and remove unnecessary variables in dotnet.yml workflow
The commit updates the buildVersion variable to "0.0.0-beta" followed by the run number from GitHub actions. It also removes the sha7, buildChangeSet, and export commands as they are no longer needed.

Tests: N/A
Update build version and remove unnecessary variables in dotnet.yml workflow

The commit updates the buildVersion variable to "0.0.0-beta" followed by the run number from GitHub actions. It also removes the sha7, buildChangeSet, and export commands as they are no longer needed.

Tests: N/A
2024-07-01 17:46:44 +01:00
Diego Colombo b557c419a8 Refactor GitHub Actions workflow to output build information
- Update the script in `.github/workflows/dotnet.yml` to output build information
- Instead of using `::set-output`, append the build information to `$GITHUB_OUTPUT`
- The build information includes `buildVersion`, `buildMode`, `bumpBranch`, `sha7`, and `buildChangeSet`
- The changes ensure that the workflow outputs the correct build details for further processing
2024-07-01 16:55:39 +01:00
Diego Colombo 3fd18cb5f2 Refactor configuration property names for code readability
- Refactored the `itemsToInclude` property to `itemsToExtract` in the `Configuration` class.
- Updated references to the `itemsToInclude` property to use the new `itemsToExtract` property in multiple test classes and extensions.

This commit improves code readability by using more descriptive property names, making it easier to understand which items are being extracted during processing.
2024-07-01 15:47:27 +01:00
Diego Colombo 0bb84cbec7 refactor: Refactor Configuration and InMemoryFile classes
- Updated the Configuration class to include a summary and parameter descriptions for the constructor.
- Added XML documentation comments to the Configuration class properties.
- Updated the InMemoryFile class to include a summary and parameter descriptions for the constructor.
- Added XML documentation comments to the InMemoryFile class properties.
2024-07-01 15:45:07 +01:00
Diego Colombo a4b472509d Refactor Document class constructor signature
- Simplified the constructor signature of the Document class in `Document.cs`
- Removed unnecessary line breaks and added missing semicolon at the end
2024-07-01 15:37:31 +01:00
Diego Colombo b50a0f9076 Refactor LlamaParseClient and LlamaParseClientExtensions
- Add XML documentation for LoadDataRawAsync method in LlamaParseClient
- Add XML documentation for LoadImagesAsync and LoadTablesAsync methods in LlamaParseClient
- Add XML documentation for LoadDataAsync methods in LlamaParseClientExtensions
2024-07-01 15:33:51 +01:00
Diego Colombo 00d5370fed Refactor LlamaParseClientExtensions.cs for loading data asynchronously
- Add new method LoadDataAsync that accepts a FileInfo parameter
- Add new method LoadDataAsync that accepts an InMemoryFile parameter
- Both methods load data asynchronously from a file
- Optional parameters include splitByPage, metadata, and cancellationToken
2024-07-01 15:26:38 +01:00
Diego Colombo a403209e90 feat: Add new methods for loading data, images, and tables asynchronously
- Added `LoadDataRawAsync` method that loads data from a file or collection of files asynchronously and returns the raw results.
- Added `LoadImagesAsync` method that loads images from a document asynchronously.
- Added `LoadTablesAsync` method that loads tables from a raw result asynchronously.
2024-07-01 15:23:03 +01:00
Diego Colombo 94f9b00f87 Refactor LlamaParseClient.LoadTablesAsync signature for cancellation
- Refactored the signature of the LoadTablesAsync method in the LlamaParseClient class to include a CancellationToken parameter with [EnumeratorCancellation] attribute.
- This change allows for better cancellation handling during asynchronous table loading operations.
2024-07-01 15:12:17 +01:00
Diego Colombo c206392bd0 Refactor BaseRetrieverClient.cs to return an empty array instead of Array.Empty<NodeWithScore>() when nodesWithScores is null.
- Update the return statement in the RetrieveNodesWithScoresAsync function to return an empty array [] instead of using Array.Empty<NodeWithScore>().
- This change improves readability and simplifies the code.
2024-07-01 15:07:54 +01:00
Diego Colombo a45b21db0c Refactor GitHub Actions workflow for releasing Nuget packages
The previous workflow file for releasing Nuget packages has been deleted, and a new file has been added with the necessary changes. The new workflow file is named "publish_to_nuget.yml" and includes the configuration for building and publishing Nuget packages. This change improves the organization of workflows related to Nuget package releases in the project.
2024-07-01 15:03:01 +01:00
Diego Colombo f136bec1df Create dotnet-desktop.yml 2024-07-01 15:02:21 +01:00
Diego Colombo 39bcc4d3ce Refactor build version generation in dotnet.yml
Previously, the build version was generated using the `date` command. This commit changes it to directly use the `github.run_number` variable, resulting in a simplified and more consistent build version format.

Impact:
- Updated the `buildVersion` export statement in dotnet.yml to use `0.0.0-beta${{ github.run_number }}`

Tests:
- No tests were impacted by this change
2024-07-01 14:54:39 +01:00
Diego Colombo 675f5caca6 Refactor build versioning logic in dotnet.yml
- Simplify build versioning logic by using a template string with the GitHub run number
- Remove unnecessary conditionals and exports
2024-07-01 14:51:38 +01:00
Diego Colombo 7c121696e1 feat(Job.cs): Add support for real_width and real_height in page metadata
This commit adds support for extracting the "real_width" and "real_height" properties from the image element in the LlamaParseClient class. If these properties exist, they are now included in the page metadata dictionary. This change enhances the functionality of the Job.cs file by providing additional information about image dimensions when processing jobs.
2024-06-28 23:04:03 +01:00
Diego Colombo 67ec5e91c3 Set Build Variables
- Added a step to set build variables in the workflow
- The build variables include `buildVersion`, `buildMode`, `bumpBranch`, and `sha7`
- The values of these variables are determined based on the branch name and current date/time
- If the branch name is "release", the `buildVersion` will not have an alpha suffix and the `buildMode` will be set to "Release"
- The output of this step is used in subsequent steps for building and testing
2024-06-26 01:45:37 +01:00
Diego Colombo 612802c7b0 Refactor dotnet.yml and csproj files
- Updated the "Pack nugets" step in dotnet.yml to include the build version from the dateStep output.
- Removed the VersionPrefix property from LlamaIndex.Core.csproj and LlamaParse.csproj.
- Added the IsPackable property to both LlamaIndex.Core.csproj and LlamaParse.csproj.
2024-06-26 01:41:52 +01:00
Diego Colombo 3eb4023984 Update build and pack steps in dotnet.yml workflow
- Set the build version dynamically using the GitHub run number
- Update the sed command to replace the version in PROJECT_FILE with the GitHub run number
- Modify the pack step to include VersionPrefix and ReleaseNotes parameters from GitHub event release tag name and body respectively

Update LlamaIndex.Core.csproj and LlamaParse.csproj files

- Change the Version property to use $(VersionPrefix) variable instead of hardcoding it as 0.0.0
2024-06-26 01:35:30 +01:00
Diego Colombo dbf243287e Update project files with version number 0.0.0
- Update LlamaIndex.Core.csproj and LlamaParse.csproj
- Set the version number to 0.0.0
2024-06-26 01:27:48 +01:00
Diego Colombo b3e05acd3b Set version dynamically based on GitHub run number
This commit adds a step to set the build version dynamically in the .github/workflows/dotnet.yml file. The new step uses the GitHub run number to update the version in the specified project file. This ensures that each build has a unique version based on the run number.
2024-06-26 01:25:28 +01:00