openai[patch]: Docs fix RST formatting in OpenAIEmbeddings (#25293)

This commit is contained in:
Eugene Yurtsev 2024-08-12 11:24:35 -04:00 committed by GitHub
parent ee8a585791
commit 0a3500808d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,6 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
)
Embed single text:
.. code-block:: python
input_text = "The meaning of life is 42"
@ -155,7 +154,6 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
[-0.024603435769677162, -0.007543657906353474, 0.0039630369283258915]
Embed multiple texts:
.. code-block:: python
vectors = embeddings.embed_documents(["hello", "goodbye"])