pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface?
4+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface?
@ 2024-12-10 14:56 "k0nserv (@k0nserv)" <noreply+k0nserv@github.com>
  0 siblings, 0 replies; 4+ messages in thread

From: k0nserv (@k0nserv) @ 2024-12-10 14:56 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hey,

Thanks for creating this project, it's great!

I wanted to ask if the functions provided by extension are meant to be part of the pubic API e.g. `array_to_vector`?

If so is there documentation about them somewhere, in particular I haven't been able to figure out the third boolean argument in `array_to_vector`.

Happy to help write some documentation for these if they are intended to be public 

^ permalink  raw  [nested|flat] 4+ messages in thread

* Re: [pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface?
@ 2024-12-10 15:03 ` "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2024-12-10 15:03 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @k0nserv, all of the functions considered public are documented in the [Reference](https://github.com/pgvector/pgvector?tab=readme-ov-file#reference) section.

`array_to_vector` is used for casts.

```sql
SELECT ARRAY[1,2,3]::vector;
```

The [Postgres docs](https://www.postgresql.org/docs/current/sql-createcast.html) explain the arguments.

^ permalink  raw  [nested|flat] 4+ messages in thread

* Re: [pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface?
@ 2024-12-10 15:03 ` "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2024-12-10 15:03 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 4+ messages in thread

* Re: [pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface?
@ 2024-12-10 15:20 ` "k0nserv (@k0nserv)" <noreply+k0nserv@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: k0nserv (@k0nserv) @ 2024-12-10 15:20 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Ah, that's even better than directly using `array_to_vector`, didn't realise that was possible.

Thanks!

^ permalink  raw  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2024-12-10 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-12-10 14:56 [pgvector/pgvector] issue #732: Are the provided functions meant to be part of the public interface? "k0nserv (@k0nserv)" <noreply+k0nserv@github.com>
2024-12-10 15:03 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-12-10 15:03 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-12-10 15:20 ` "k0nserv (@k0nserv)" <noreply+k0nserv@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox