Skip to content

Commit

Permalink
add header for inderence proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Aug 12, 2024
1 parent 69c6fef commit da1bee6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function setupAxios({ apiKey }) {
return data;
}
headers['Content-Type'] = 'application/json';
headers['x-inference-proxy'] = 'true';
return bigIntJSON.stringify(data);
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/common/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getBaseURL } from './utils';
export class QdrantClientExtended extends QdrantClient {
#downloadController;
constructor({ url, apiKey, port }) {
super({ url, apiKey, port });
super({ url, apiKey, port, headers: { 'x-inference-proxy': 'true' } });

this.downloadSnapshot = this.downloadSnapshot.bind(this);
this.getSnapshotUploadUrl = this.getSnapshotUploadUrl.bind(this);
Expand Down
5 changes: 4 additions & 1 deletion src/components/InteractiveTutorial/MdxPages/Quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ PUT collections/test_collection/points
## Run a query

We need to ask a question in vector form:
</br>*Which of our stored vectors are most similar to the query vector ?* </br>`[0.2, 0.1, 0.9, 0.7]`

*Which of our stored vectors are most similar to the query vector ?*

`[0.2, 0.1, 0.9, 0.7]`

```json withRunButton=true
POST collections/test_collection/points/search
Expand Down

0 comments on commit da1bee6

Please sign in to comment.