Skip to content

Commit 48fb495

Browse files
committed
Updated pr.
1 parent 8c563c0 commit 48fb495

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

libs/oci/README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ All integrations in this package assume that you have the credentials setup to c
1111

1212
## Chat Models
1313

14+
### OCI Generative AI
15+
1416
`ChatOCIGenAI` class exposes chat models from OCI Generative AI.
1517

1618
```python
@@ -20,7 +22,9 @@ llm = ChatOCIGenAI()
2022
llm.invoke("Sing a ballad of LangChain.")
2123
```
2224

23-
You may also instantiate the model with the generic `ChatOCIModelDeployment` or framework specific class like `ChatOCIModelDeploymentVLLM`.
25+
### OCI Data Science
26+
27+
You may also instantiate the OCI Data Science model with the generic `ChatOCIModelDeployment` or framework specific class like `ChatOCIModelDeploymentVLLM`.
2428

2529
```python
2630
from langchain_oci.chat_models import ChatOCIModelDeployment, ChatOCIModelDeploymentVLLM
@@ -58,6 +62,8 @@ chat_vllm.invoke(messages)
5862

5963
## Embeddings
6064

65+
### OCI Generative AI
66+
6167
`OCIGenAIEmbeddings` class exposes embeddings from OCI Generative AI.
6268

6369
```python
@@ -67,7 +73,9 @@ embeddings = OCIGenAIEmbeddings()
6773
embeddings.embed_query("What is the meaning of life?")
6874
```
6975

70-
You may also instantiate the model with the `OCIModelDeploymentEndpointEmbeddings`.
76+
### OCI Data Science
77+
78+
You may also instantiate the OCI Data Science model with the `OCIModelDeploymentEndpointEmbeddings`.
7179

7280
```python
7381
from langchain_oci.embeddings import OCIModelDeploymentEndpointEmbeddings
@@ -88,6 +96,9 @@ embeddings.embed_documents(documents)
8896
```
8997

9098
## LLMs
99+
100+
### OCI Generative AI
101+
91102
`OCIGenAI` class exposes LLMs from OCI Generative AI.
92103

93104
```python
@@ -97,7 +108,9 @@ llm = OCIGenAI()
97108
llm.invoke("The meaning of life is")
98109
```
99110

100-
You may also instantiate the model with `OCIModelDeploymentLLM` or `OCIModelDeploymentVLLM`.
111+
### OCI Data Science
112+
113+
You may also instantiate the OCI Data Science model with `OCIModelDeploymentLLM` or `OCIModelDeploymentVLLM`.
101114

102115
```python
103116
from langchain_oci.llms import OCIModelDeploymentLLM, OCIModelDeploymentVLLM

libs/oci/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ license = "UPL"
1313
[tool.poetry.dependencies]
1414
python = ">=3.9,<4.0"
1515
langchain-core = ">=0.3.15,<0.4"
16+
langchain-openai = ">=0.3.9"
1617
oci = ">=2.144.0"
1718
oracle-ads = ">=2.13.3"
18-
numpy = [
19-
{ version = "^1", python = "<3.12" },
20-
{ version = "^1.26.0", python = ">=3.12" },
21-
]
2219
pydantic = ">=2,<3"
2320

2421
[tool.poetry.group.test]

0 commit comments

Comments
 (0)