Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
OurBuilding Ambient Agents with LangGraph course is now available on LangChain Academy!
Open In ColabOpen on GitHub

Airtable

%pip install--upgrade--quiet  pyairtable
from langchain_community.document_loadersimport AirtableLoader
API Reference:AirtableLoader
  • Get your API keyhere.
  • Get ID of your basehere.
  • Get your table ID from the table url as shownhere.
api_key="xxx"
base_id="xxx"
table_id="xxx"
view="xxx"# optional
loader= AirtableLoader(api_key, table_id, base_id, view=view)
docs= loader.load()

Returns each table row asdict.

len(docs)
3
eval(docs[0].page_content)
{'id': 'recF3GbGZCuh9sXIQ',
'createdTime': '2023-06-09T04:47:21.000Z',
'fields': {'Priority': 'High',
'Status': 'In progress',
'Name': 'Document Splitters'}}

Related


[8]ページ先頭

©2009-2025 Movatter.jp