SupabaseVectorStore.from_documents is not working
Labels: name: area: vector store, name: auto:bug

### System Info

langchain==0.0.300
supabase==1.1.1

### Who can help?

@hwaking @eyurtsev @agola11 @eyurtsev @hwchase17 @agola11 

### Information

- [X] The official example notebooks/scripts
- [X] My own modified scripts

### Related Components

- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async

### Reproduction

### **Creation of Supabase client**
`supabase_url: str = os.environ.get("SUPABASE_URL")  # type: ignore
supabase_key: str = os.environ.get("SUPABASE_SERVICE_KEY")  # type: ignore
supabase_client = create_client(supabase_url, supabase_key)`

### Text Splitter creation
`text_splitter = CharacterTextSplitter(
    chunk_size=800,
    chunk_overlap=0,
)`

### **Embeddings**
`embeddings = OpenAIEmbeddings()`

### **Loading the document**
`loader = PyPDFLoader("Alice_in_wonderland2.pdf")
pages = loader.load_and_split()
docs = text_splitter.split_documents(pages)`

### **Save values to Supabase**
`vector_store = SupabaseVectorStore.from_documents(documents=docs, embedding=embeddings, client=supabase_client)`

### **Error encountring**
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\VSCode\Python\langchain project\supabase-try\test.py", line 34, in <module>
    vector_store = SupabaseVectorStore.from_documents(
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\base.py", line 417, in from_documents       
    return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\supabase.py", line 147, in from_texts       
    cls._add_vectors(client, table_name, embeddings, docs, ids)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain\vectorstores\supabase.py", line 323, in _add_vectors     
    result = client.from_(table_name).upsert(chunk).execute()  # type: ignore
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\postgrest\_sync\request_builder.py", line 57, in execute
    r = self.session.request(
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 814, in request
    return self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 901, in send
    response = self._send_handling_auth(
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 929, in _send_handling_auth
    response = self._send_handling_redirects(
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 966, in _send_handling_redirects
    response = self._send_single_request(request)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_client.py", line 1002, in _send_single_request
    response = transport.handle_request(request)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_transports\default.py", line 218, in handle_request
    resp = self._pool.handle_request(req)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 135, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\httpx\_transports\default.py", line 77, in map_httpcore_exceptions 
    raise mapped_exc(message) from exc
httpx.WriteTimeout: The write operation timed out


### I tried changing the code according to the langchain docs as
`vector_store = SupabaseVectorStore.from_documents(
    docs,
    embeddings,
    client=supabase_client,
    table_name="documents",
    query_name="match_documents",
)`

### Then I encountered the following error
2023-10-05 10:33:29,879:INFO - HTTP Request: POST https://scptrclvtrvcwjdunlrn.supabase.co/rest/v1/documents "HTTP/1.1 404 Not Found"
Traceback (most recent call last):
  File "D:\VSCode\Python\langchain project\supabase-try\test.py", line 34, in <module>
    vector_store = SupabaseVectorStore.from_documents(

**I didnt create the document table in the supabase manually as i need it to be created automatically with the code. And if i need to create it manually i need to know the steps of create that as well and how to integrate it as well. Please help me immediately**

### Expected behavior

SupabaseVectorStore.from_documents works fine and Store all the embeddings in the vector store.