Skip to content

Commit fc0dc16

Browse files
🌿 Fern Regeneration -- April 13, 2025 (#45)
--------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
1 parent f2f39c9 commit fc0dc16

File tree

193 files changed

+10176
-3311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+10176
-3311
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
root = true
2+
3+
[*.cs]
4+
resharper_arrange_object_creation_when_type_evident_highlighting = hint
5+
resharper_auto_property_can_be_made_get_only_global_highlighting = hint
6+
resharper_check_namespace_highlighting = hint
7+
resharper_class_never_instantiated_global_highlighting = hint
8+
resharper_class_never_instantiated_local_highlighting = hint
9+
resharper_collection_never_updated_global_highlighting = hint
10+
resharper_convert_type_check_pattern_to_null_check_highlighting = hint
11+
resharper_inconsistent_naming_highlighting = hint
12+
resharper_member_can_be_private_global_highlighting = hint
13+
resharper_member_hides_static_from_outer_class_highlighting = hint
14+
resharper_not_accessed_field_local_highlighting = hint
15+
resharper_nullable_warning_suppression_is_used_highlighting = suggestion
16+
resharper_partial_type_with_single_part_highlighting = hint
17+
resharper_prefer_concrete_value_over_default_highlighting = none
18+
resharper_private_field_can_be_converted_to_local_variable_highlighting = hint
19+
resharper_property_can_be_made_init_only_global_highlighting = hint
20+
resharper_property_can_be_made_init_only_local_highlighting = hint
21+
resharper_redundant_name_qualifier_highlighting = none
22+
resharper_redundant_using_directive_highlighting = hint
23+
resharper_replace_slice_with_range_indexer_highlighting = none
24+
resharper_unused_auto_property_accessor_global_highlighting = hint
25+
resharper_unused_auto_property_accessor_local_highlighting = hint
26+
resharper_unused_member_global_highlighting = hint
27+
resharper_unused_type_global_highlighting = hint
28+
resharper_use_string_interpolation_highlighting = hint
29+
dotnet_diagnostic.CS1591.severity = suggestion
30+
31+
[src/**/Types/*.cs]
32+
resharper_check_namespace_highlighting = none
33+
34+
[src/**/Core/Public/*.cs]
35+
resharper_check_namespace_highlighting = none

.fernignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# Specify files that shouldn't be modified by Fern
22

33
src/Pinecone/PineconeClient.cs
4+
src/Pinecone/Core/NdJsonRequest.cs
5+
src/Pinecone/Core/NdJsonContent.cs
46
src/Pinecone/Core/Public/SourceTagOption.cs
57
src/Pinecone/Core/Public/IsTlsEnabledOption.cs
68
src/Pinecone/Types/Embedding.cs
9+
src/Pinecone/Index/IndexClientExtended.cs
710
src/Pinecone.Test/Integration
811
src/Pinecone.Test/Unit/EmbeddingTest.cs
912
src/Pinecone.Test/Unit/AdditionalPropertiesTest.cs
1013
src/Pinecone.Test/Unit/UserAgentTest.cs
1114
src/Pinecone.Test/Unit/UnexpectedErrorTest.cs
15+
src/Pinecone.Test/Unit/NdJsonContentTest.cs
1216
src/Pinecone.Test/Unit/MockServer/EmbedTest.cs
1317
.github/workflows/ci.yml
1418
CONTRIBUTING.md

.mock/definition/__package__.yml

Lines changed: 42 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ errors:
2323
name: Internal server error
2424
BadRequestError:
2525
status-code: 400
26-
type: ErrorResponse
26+
type: unknown
2727
docs: Bad request. The request body included invalid request parameters.
2828
examples:
2929
- value:
@@ -1738,69 +1738,42 @@ types:
17381738
next: optional<string>
17391739
source:
17401740
proto: ../vector-service/proto/pinecone/data/v1/vector_service.proto
1741-
SearchRecordsRequestQuery:
1742-
docs: The query inputs to search with.
1741+
UpsertRecord:
1742+
docs: The request for the `upsert` operation.
17431743
properties:
1744-
top_k:
1745-
type: integer
1746-
docs: The number of results to return for each search.
1747-
filter:
1748-
type: optional<map<string, unknown>>
1749-
docs: The filter to apply.
1750-
inputs: optional<EmbedInputs>
1751-
vector: optional<SearchRecordsVector>
1752-
id:
1753-
type: optional<string>
1754-
docs: The unique ID of the vector to be used as a query vector.
1755-
validation:
1756-
maxLength: 512
1744+
_id:
1745+
type: string
1746+
docs: The unique ID of the record to upsert.
1747+
extra-properties: true
17571748
source:
17581749
openapi: ../data-plane/openapi/openapi.yml
1759-
inline: true
1760-
SearchRecordsRequestRerank:
1761-
docs: Parameters for reranking the initial search results.
1750+
SearchRecordsResponseResult:
17621751
properties:
1763-
model:
1764-
type: string
1765-
docs: >-
1766-
The name of the [reranking
1767-
model](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models)
1768-
to use.
1769-
rank_fields:
1770-
docs: The fields to use for reranking.
1771-
type: list<string>
1772-
top_n:
1773-
type: optional<integer>
1774-
docs: >-
1775-
The number of top results to return after reranking. Defaults to
1776-
top_k.
1777-
parameters:
1778-
type: optional<map<string, unknown>>
1779-
docs: >-
1780-
Additional model-specific parameters. Refer to the [model
1781-
guide](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models)
1782-
for available model parameters.
1783-
query:
1784-
type: optional<string>
1785-
docs: >-
1786-
The query to rerank documents against. If a specific rerank query is
1787-
specified, it overwrites the query input that was provided at the top
1788-
level.
1752+
hits:
1753+
docs: The hits for the search document request.
1754+
type: list<Hit>
17891755
source:
17901756
openapi: ../data-plane/openapi/openapi.yml
17911757
inline: true
1792-
SearchRecordsRequest:
1793-
docs: A search request for records in a specific namespace.
1758+
SearchRecordsResponse:
1759+
docs: The records search response.
1760+
properties:
1761+
result: SearchRecordsResponseResult
1762+
usage: SearchUsage
1763+
source:
1764+
openapi: ../data-plane/openapi/openapi.yml
1765+
Hit:
1766+
docs: A record whose vector values are similar to the provided search query.
17941767
properties:
1795-
query:
1796-
type: SearchRecordsRequestQuery
1797-
docs: The query inputs to search with.
1768+
_id:
1769+
type: string
1770+
docs: The record id of the search hit.
1771+
_score:
1772+
type: float
1773+
docs: The similarity score of the returned record.
17981774
fields:
1799-
type: optional<list<string>>
1800-
docs: The fields to return in the search results.
1801-
rerank:
1802-
type: optional<SearchRecordsRequestRerank>
1803-
docs: Parameters for reranking the initial search results.
1775+
type: map<string, unknown>
1776+
docs: The selected record fields associated with the search hit.
18041777
source:
18051778
openapi: ../data-plane/openapi/openapi.yml
18061779
SearchUsage:
@@ -1842,6 +1815,7 @@ types:
18421815
docs: The sparse embedding indices.
18431816
source:
18441817
openapi: ../data-plane/openapi/openapi.yml
1818+
SearchRequest: unknown
18451819
Document:
18461820
type: map<string, unknown>
18471821
docs: Document for reranking
@@ -2010,6 +1984,19 @@ types:
20101984
docs: The usage for this operation.
20111985
source:
20121986
proto: ../vector-service/proto/pinecone/data/v1/vector_service.proto
1987+
FieldBehavior:
1988+
enum:
1989+
- FIELD_BEHAVIOR_UNSPECIFIED
1990+
- OPTIONAL
1991+
- REQUIRED
1992+
- OUTPUT_ONLY
1993+
- INPUT_ONLY
1994+
- IMMUTABLE
1995+
- UNORDERED_LIST
1996+
- NON_EMPTY_DEFAULT
1997+
- IDENTIFIER
1998+
source:
1999+
proto: ../vector-service/proto/google/api/field_behavior.proto
20132000
ListItem:
20142001
properties:
20152002
id: optional<string>

.mock/definition/api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: api
22
error-discrimination:
33
strategy: status-code
44
display-name: Pinecone Control Plane API
5-
default-environment: Default
65
environments:
76
Default: https://api.pinecone.io
7+
default-environment: Default
88
headers:
99
X-Pinecone-API-Version:
1010
name: version

.mock/definition/index.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,63 @@ service:
168168
id: '101'
169169
response:
170170
body: {}
171+
searchRecords:
172+
path: /records/namespaces/{namespace}/search
173+
method: POST
174+
auth: true
175+
docs: >-
176+
This operation converts a query to a vector embedding and then searches
177+
a namespace using the embedding. It returns the most similar records in
178+
the namespace, along with their similarity scores.
179+
source:
180+
openapi: ../data-plane/openapi/openapi.yml
181+
path-parameters:
182+
namespace:
183+
type: string
184+
docs: The namespace to search.
185+
display-name: Search a namespace
186+
request:
187+
name: SearchRecordsRequest
188+
body:
189+
properties:
190+
query:
191+
type: SearchRecordsRequestQuery
192+
docs: The query inputs to search with.
193+
fields:
194+
type: optional<list<string>>
195+
docs: The fields to return in the search results.
196+
rerank:
197+
type: optional<SearchRecordsRequestRerank>
198+
docs: Parameters for reranking the initial search results.
199+
content-type: application/json
200+
response:
201+
docs: A successful search namespace response.
202+
type: root.SearchRecordsResponse
203+
status-code: 200
204+
errors:
205+
- root.BadRequestError
206+
examples:
207+
- path-parameters:
208+
namespace: namespace
209+
request:
210+
query:
211+
top_k: 10
212+
inputs:
213+
text: your query text
214+
fields:
215+
- chunk_text
216+
response:
217+
body:
218+
result:
219+
hits:
220+
- _id: example-record-1
221+
_score: 0.9281134605407715
222+
fields:
223+
data: your example text
224+
usage:
225+
read_units: 5
226+
embed_total_tokens: 10
227+
rerank_units: 1
171228
describe_index_stats:
172229
path: /describe_index_stats
173230
method: POST
@@ -528,3 +585,55 @@ service:
528585
upsertedCount: 1
529586
source:
530587
proto: ../vector-service/proto/pinecone/data/v1/vector_service.proto
588+
types:
589+
SearchRecordsRequestQuery:
590+
docs: The query inputs to search with.
591+
properties:
592+
top_k:
593+
type: integer
594+
docs: The number of results to return for each search.
595+
filter:
596+
type: optional<map<string, unknown>>
597+
docs: The filter to apply.
598+
inputs: optional<root.EmbedInputs>
599+
vector: optional<root.SearchRecordsVector>
600+
id:
601+
type: optional<string>
602+
docs: The unique ID of the vector to be used as a query vector.
603+
validation:
604+
maxLength: 512
605+
source:
606+
openapi: ../data-plane/openapi/openapi.yml
607+
inline: true
608+
SearchRecordsRequestRerank:
609+
docs: Parameters for reranking the initial search results.
610+
properties:
611+
model:
612+
type: string
613+
docs: >-
614+
The name of the [reranking
615+
model](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models)
616+
to use.
617+
rank_fields:
618+
docs: The fields to use for reranking.
619+
type: list<string>
620+
top_n:
621+
type: optional<integer>
622+
docs: >-
623+
The number of top results to return after reranking. Defaults to
624+
top_k.
625+
parameters:
626+
type: optional<map<string, unknown>>
627+
docs: >-
628+
Additional model-specific parameters. Refer to the [model
629+
guide](https://docs.pinecone.io/guides/inference/understanding-inference#reranking-models)
630+
for available model parameters.
631+
query:
632+
type: optional<string>
633+
docs: >-
634+
The query to rerank documents against. If a specific rerank query is
635+
specified, it overwrites the query input that was provided at the top
636+
level.
637+
source:
638+
openapi: ../data-plane/openapi/openapi.yml
639+
inline: true

.mock/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization" : "pinecone",
3-
"version" : "0.51.13"
3+
"version" : "0.57.22"
44
}

0 commit comments

Comments
 (0)