Skip to content

Commit

Permalink
feat: first commit for ollama ai lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bollen authored and Casper Bollen committed Mar 7, 2024
1 parent fd6ddcf commit a0b7e87
Show file tree
Hide file tree
Showing 10 changed files with 1,403 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
!/src/Informedica.Utils.Lib/BCL/
!/src/Informedica.Utils.Lib/Scripts/
!/src/Informedica.Utils.Lib/Notebooks/
# Informedica.Ollama.Lib
!/src/Informedica.Ollama.Lib/
!/src/Informedica.Ollama.Lib/Scripts/
!/src/Informedica.Ollama.Lib/Notebooks/
# Informedica.GenCore.Lib
!/src/Informedica.GenCore.Lib/
!/src/Informedica.GenCore.Lib/Scripts/
Expand Down
15 changes: 15 additions & 0 deletions GenPres.sln
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Informedica.KinderFormulari
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Informedica.GenForm.Tests", "tests\Informedica.GenForm.Tests\Informedica.GenForm.Tests.fsproj", "{73C084AF-54F4-4B39-A7F9-F0A2A3AB9DD5}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Informedica.Ollama.Lib", "src\Informedica.Ollama.Lib\Informedica.Ollama.Lib.fsproj", "{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -281,6 +283,18 @@ Global
{73C084AF-54F4-4B39-A7F9-F0A2A3AB9DD5}.Release|x64.Build.0 = Release|Any CPU
{73C084AF-54F4-4B39-A7F9-F0A2A3AB9DD5}.Release|x86.ActiveCfg = Release|Any CPU
{73C084AF-54F4-4B39-A7F9-F0A2A3AB9DD5}.Release|x86.Build.0 = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|x64.ActiveCfg = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|x64.Build.0 = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|x86.ActiveCfg = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Debug|x86.Build.0 = Debug|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|Any CPU.Build.0 = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|x64.ActiveCfg = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|x64.Build.0 = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|x86.ActiveCfg = Release|Any CPU
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -304,6 +318,7 @@ Global
{CEB3D1F1-0D5B-4438-B0EC-F448430E1635} = {E75733BC-FF1B-477D-AEAE-43CD0DE5490B}
{8CFFC9FE-B559-48F6-80E6-D2D4B9CCE219} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
{73C084AF-54F4-4B39-A7F9-F0A2A3AB9DD5} = {E75733BC-FF1B-477D-AEAE-43CD0DE5490B}
{5B13678B-1260-4B21-B5FF-7F8C8A9B1BD2} = {F84DCF8A-FC1A-4677-AF4D-616AD7DB3470}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E6B79611-4632-4CCC-BE40-0FF3202E49DF}
Expand Down
2 changes: 1 addition & 1 deletion paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ NUGET
FSharp.Control.Websockets (0.2.3)
FSharp.Core (>= 6.0)
Microsoft.IO.RecyclableMemoryStream (>= 2.2.1)
FSharp.Core (8.0.101)
FSharp.Core (8.0.200)
FSharp.Data (6.3)
FSharp.Core (>= 5.0.1)
FSharp.Data.Csv.Core (>= 6.3)
Expand Down
16 changes: 16 additions & 0 deletions src/Informedica.Ollama.Lib/Informedica.Ollama.Lib.fsproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="Ollama.fs" />
<None Include="Scripts\AI.fsx" />
<Content Include="Notebooks\Examples.dib" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Informedica.Utils.Lib\Informedica.Utils.Lib.fsproj" />
</ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" />
</Project>
7 changes: 7 additions & 0 deletions src/Informedica.Ollama.Lib/Notebooks/Examples.dib
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!meta

{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"}]}}

#!fsharp

#load "load.fsx"
5 changes: 5 additions & 0 deletions src/Informedica.Ollama.Lib/Notebooks/load.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# r "nuget: Newtonsoft.Json"

#r "../bin/Debug/net8.0/Informedica.Utils.Lib.dll"
#r "../bin/Debug/net8.0/Informedica.Ollama.Lib.dll"

Loading

0 comments on commit a0b7e87

Please sign in to comment.