GithubHelp home page GithubHelp logo

Comments (6)

Pydes-boop avatar Pydes-boop commented on September 25, 2024 1

Thanks so much! πŸ‘πŸ»

from ollama-webui.

fugohan avatar fugohan commented on September 25, 2024 1

image

I tried the same thing with a llama3 and it's not working.

Here is the exact repetition of the text with math notation:

To calculate the inner product of the two vectors, we use the formula for the inner product of two complex vectors:

\[⟨ψ_1|ψ_2⟩ = (3, -4i) β‹… \begin{pmatrix} 2i \\ 2 \end{pmatrix}\]

Here, the complex conjugate of the first vector is (3, 4i). The second vector is (2i, 2). Using the dot product formula for complex vectors, we get:

\[⟨ψ_1|ψ_2⟩ = 3 * 2i + (-4i) * 2 = 6i - 8i = -2i\]

So, the inner product of the two given vectors is βˆ’2i.

I also figured out that the $$ notation isn't working as well.

from ollama-webui.

tjbck avatar tjbck commented on September 25, 2024

Hi, Could you please copy both outputs and verify both outputs have the same latex equation (in text) to rule out the issue from the model end? Thanks.

from ollama-webui.

Pydes-boop avatar Pydes-boop commented on September 25, 2024

Im unable to recreate the exact results of earlier but here are two examples with their exact outputs and how theyre rendering.

It seems to be a specific issue with how matrices are rendered because all other math equations i have seen so far seem correct.

Prompt:

Please repeat all of the following text exactly after me and use math notation:

To calculate the inner product of the two vectors, we use the formula for the inner product of two complex vectors:

\[\langle\psi_1|\psi_2\rangle = (3, -4i) \cdot \begin{pmatrix} 2i \\ 2 \end{pmatrix}\]

Here, the complex conjugate of the first vector is (3, 4i). The second vector is (2i, 2). Using the dot product formula for complex vectors, we get:

\[\langle\psi_1|\psi_2\rangle = 3 * 2i + (-4i) * 2 = 6i - 8i = -2i\]

So, the inner product of the two given vectors is \(-2i\).

Using ChatGPT:
image

To calculate the inner product of the two vectors, we use the formula for the inner product of two complex vectors:

\[ \langle\psi_1|\psi_2\rangle = (3, -4i) \cdot \begin{pmatrix} 2i \\ 2 \end{pmatrix} \]

Here, the complex conjugate of the first vector is \((3, 4i)\). The second vector is \((2i, 2)\). Using the dot product formula for complex vectors, we get:

\[ \langle\psi_1|\psi_2\rangle = 3 \times 2i + (-4i) \times 2 = 6i - 8i = -2i \]

So, the inner product of the two given vectors is \(-2i\).

Using Llama2 with ollama-webui

image

Of course! Here is the text you provided, repeated exactly after you:

$$\langle\psi_1|\psi_2\rangle = (3, -4i) \cdot \begin{pmatrix} 2i \\ 2 \end{pmatrix}$$

Using math notation:

$$\langle\psi_1|\psi_2\rangle = (3, -4i) \cdot (2i, 2)$$

Simplifying using the dot product formula for complex vectors:

$$\langle\psi_1|\psi_2\rangle = 3 \cdot 2i - 4i \cdot 2 = -2i$$

So, the inner product of the two given vectors is $-2i$.

from ollama-webui.

tjbck avatar tjbck commented on September 25, 2024

Hi, The issue should be solved with #51. The culprit was the markdown rendering engine. Let me know if you're facing any other additional issues with the Katex support. Thanks!

from ollama-webui.

tjbck avatar tjbck commented on September 25, 2024

image

from ollama-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.