Skip to content

Add support for Vector Stores#68

Open
OSalama wants to merge 2 commits intomgallo:mainfrom
OSalama:main
Open

Add support for Vector Stores#68
OSalama wants to merge 2 commits intomgallo:mainfrom
OSalama:main

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