Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Vector Stores #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add support for Vector Stores #68

wants to merge 2 commits into from

Conversation

OSalama
Copy link

@OSalama OSalama commented Aug 6, 2024

Vector Stores are now the preferred way of attaching files to assistants, so here's support for them!

@nicolasblanco
Copy link

Yes, I would like this also 👍🏻

@EpicOrange
Copy link

Thanks for this! I'm getting this error:

Erlang/OTP 27 [erts-15.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]

==> openai
Compiling 26 files (.ex)
      error: def vector_stores/2 defines defaults multiple times. Elixir allows defaults to be declared once per definition. Instead of:

          def foo(:first_clause, b \\ :default) do ... end
          def foo(:second_clause, b \\ :default) do ... end

      one should write:

          def foo(a, b \\ :default)
          def foo(:first_clause, b) do ... end
          def foo(:second_clause, b) do ... end

      │
 2305 │   def vector_stores(vector_store_id, config \\ %Config{})
      │       ^
      │
      └─ lib/openai.ex:2305:7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants