Skip to content

Commit

Permalink
🐛 Destination Vectara: Improve title extraction logic (#35206)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofermend authored and xiaohansong committed Mar 7, 2024
1 parent 04789ac commit d4c2655
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY destination_vectara ./destination_vectara
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.version=0.2.1
LABEL io.airbyte.name=airbyte/destination-vectara
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def _get_document_metadata(self, record: AirbyteRecordMessage) -> Dict[str, Any]
def _get_document_title(self, record: AirbyteRecordMessage) -> str:
title = "Untitled"
if self.title_field:
title = dpath.util.get(record.data, self.title_field)
found_title = dpath.util.values(record.data, self.title_field, separator=".")
if found_title:
title = found_title[0]
return title

def _get_stream_id(self, record: AirbyteRecordMessage) -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: database
connectorType: destination
definitionId: 102900e7-a236-4c94-83e4-a4189b99adc2
dockerImageTag: 0.2.0
dockerImageTag: 0.2.1
dockerRepository: airbyte/destination-vectara
githubIssueLabel: destination-vectara
icon: vectara.svg
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/destinations/vectara.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ In addition, in the connector UI you define two set of fields for this connector

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :---------------------------------------------------------------- |
| 0.2.1 | 2024-03-05 | [35206](https://github.com/airbytehq/airbyte/pull/35206) | Fix: improved title parsing |
| 0.2.0 | 2024-01-29 | [34579](https://github.com/airbytehq/airbyte/pull/34579) | Add document title file configuration |
| 0.1.0 | 2023-11-10 | [31958](https://github.com/airbytehq/airbyte/pull/31958) | 🎉 New Destination: Vectara (Vector Database) |

0 comments on commit d4c2655

Please sign in to comment.