@@ -88,7 +88,7 @@ class HybridSearchRetriever:
88
88
# prompting wrapper
89
89
@property
90
90
def chat (self ):
91
- """ChatOpenAI read-only property."""
91
+ """ChatOpenAI lazy read-only property."""
92
92
if self ._chat is None :
93
93
self ._chat = ChatOpenAI (
94
94
api_key = Credentials .OPENAI_API_KEY ,
@@ -103,7 +103,7 @@ def chat(self):
103
103
# embeddings
104
104
@property
105
105
def openai_embeddings (self ):
106
- """OpenAIEmbeddings read-only property."""
106
+ """OpenAIEmbeddings lazy read-only property."""
107
107
if self ._openai_embeddings is None :
108
108
self ._openai_embeddings = OpenAIEmbeddings (
109
109
api_key = Credentials .OPENAI_API_KEY , organization = Credentials .OPENAI_API_ORGANIZATION
@@ -112,14 +112,14 @@ def openai_embeddings(self):
112
112
113
113
@property
114
114
def pinecone_index (self ):
115
- """pinecone.Index read-only property."""
115
+ """pinecone.Index lazy read-only property."""
116
116
if self ._pinecone_index is None :
117
117
self ._pinecone_index = pinecone .Index (index_name = Config .PINECONE_INDEX_NAME )
118
118
return self ._pinecone_index
119
119
120
120
@property
121
121
def vector_store (self ):
122
- """Pinecone read-only property."""
122
+ """Pinecone lazy read-only property."""
123
123
if self ._vector_store is None :
124
124
self ._vector_store = Pinecone (
125
125
index = self .pinecone_index ,
@@ -130,14 +130,14 @@ def vector_store(self):
130
130
131
131
@property
132
132
def text_splitter (self ):
133
- """TextSplitter read-only property."""
133
+ """TextSplitter lazy read-only property."""
134
134
if self ._text_splitter is None :
135
135
self ._text_splitter = TextSplitter ()
136
136
return self ._text_splitter
137
137
138
138
@property
139
139
def bm25_encoder (self ):
140
- """BM25Encoder read-only property."""
140
+ """BM25Encoder lazy read-only property."""
141
141
if self ._b25_encoder is None :
142
142
self ._b25_encoder = BM25Encoder ().default ()
143
143
return self ._b25_encoder
0 commit comments