Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = "LLM for Unity"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = v2.5.2
PROJECT_NUMBER = v2.5.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.5.3
#### 🐛 Fixes

- fix RAG for iOS (PR: #354)


## v2.5.2
#### 🚀 Features

Expand Down
5 changes: 2 additions & 3 deletions CHANGELOG.release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### 🚀 Features
### 🐛 Fixes

- Support Android x86-64 architecture (Magic Leap 2) (PR: #344)
- Combine ARM and Intel architectures of macOS (PR: #345)
- fix RAG for iOS (PR: #354)

2 changes: 1 addition & 1 deletion Runtime/LLMUnitySetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class LLMUnitySetup
{
// DON'T CHANGE! the version is autocompleted with a GitHub action
/// <summary> LLM for Unity version </summary>
public static string Version = "v2.5.2";
public static string Version = "v2.5.3";
/// <summary> LlamaLib version </summary>
public static string LlamaLibVersion = "v1.2.6";
/// <summary> LlamaLib release url </summary>
Expand Down
4 changes: 4 additions & 0 deletions Runtime/RAG/usearch/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ namespace Cloud.Unum.USearch
{
public static class NativeMethods
{
#if UNITY_IOS
private const string LibraryName = "__Internal";
#else
private const string LibraryName = "libusearch_c";
#endif

[DllImport(LibraryName, CallingConvention = CallingConvention.Cdecl)]
public static extern usearch_index_t usearch_init(ref IndexOptions options, out usearch_error_t error);
Expand Down
13 changes: 3 additions & 10 deletions Runtime/RAG/usearch/USearchIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,17 +318,10 @@ private int Search<T>(T[] queryVector, int count, out ulong[] keys, out float[]
}
else
{
if (Application.platform == RuntimePlatform.Android)
lock (filterLock)
{
lock (filterLock)
{
FilterFunction = filter;
matches = checked((int)usearch_filtered_search(this._index, queryVectorPtr, scalarKind, (UIntPtr)count, StaticFilter, IntPtr.Zero, keys, distances, out error));
}
}
else
{
matches = checked((int)usearch_filtered_search(this._index, queryVectorPtr, scalarKind, (UIntPtr)count, (int key, IntPtr state) => filter(key), IntPtr.Zero, keys, distances, out error));
FilterFunction = filter;
matches = checked((int)usearch_filtered_search(this._index, queryVectorPtr, scalarKind, (UIntPtr)count, StaticFilter, IntPtr.Zero, keys, distances, out error));
}
}
HandleError(error);
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.5.2
v2.5.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ai.undream.llm",
"version": "2.5.2",
"version": "2.5.3",
"displayName": "LLM for Unity",
"description": "LLM for Unity allows to run and distribute Large Language Models (LLMs) in the Unity engine.",
"unity": "2022.3",
Expand Down