eastriver
eastriver
`Since all points along the chord from P to S are collapsed into a single unit vector, you can see how the chord that contains the normal vector is the...
[`func encode(_ text: borrowing String) -> [Token]`](https://github.com/eastriverlee/LLM.swift/blob/f20dd03146166624511ce71eab12557d14052271/Sources/LLM/LLM.swift#L367C17-L367C23) should do it. ```swift let text = "hello world" let llm = LLM(...) let embeddings = llm.encode(text) ``` and for decoding: ```swift let...
i think you have the wrong definition of LLM embeddings, and it's understandable because i was also once confused about the concept. you might want to check [this comment](https://github.com/ggerganov/llama.cpp/discussions/2180). it's...
i was just saying that you have the option to cast an array of ints as array of floats so that you can check cosine similarity. after all, int is...
so, i researched a bit further on this, being not so sure if i understood the concept correctly. what you are referring to is not related to LLM, indeed. however,...
thank you for the clarification and a clear explanation. i was the one who had the wrong idea. my bad. i'll look into this more, find a way to get...
@shashankb-cc It would be helpful to provide a code that can reproduce this error first. Then I can fix the root cause.