mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-11 22:04:37 +00:00
openai[patch]: Docs fix RST formatting in OpenAIEmbeddings (#25293)
This commit is contained in:
parent
ee8a585791
commit
0a3500808d
@ -143,7 +143,6 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
|||||||
)
|
)
|
||||||
|
|
||||||
Embed single text:
|
Embed single text:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
input_text = "The meaning of life is 42"
|
input_text = "The meaning of life is 42"
|
||||||
@ -155,7 +154,6 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
|||||||
[-0.024603435769677162, -0.007543657906353474, 0.0039630369283258915]
|
[-0.024603435769677162, -0.007543657906353474, 0.0039630369283258915]
|
||||||
|
|
||||||
Embed multiple texts:
|
Embed multiple texts:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
vectors = embeddings.embed_documents(["hello", "goodbye"])
|
vectors = embeddings.embed_documents(["hello", "goodbye"])
|
||||||
|
Loading…
Reference in New Issue
Block a user